Skip to content

Update to enable Rubocop and contains Rubocop fixes in lib/ #974

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 29, 2017

Conversation

HelenCampbell
Copy link
Contributor

No description provided.

@HelenCampbell HelenCampbell changed the title Update to enable Rubocop and contains Rubocop fixes in lib/ (WIP) Update to enable Rubocop and contains Rubocop fixes in lib/ Aug 22, 2017
end

def destroy
# rubocop:disable Lint/UselessAssignment
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can just go on the offending line

end

def self.prefetch(resources)
users = instances
resources.keys.each do |name|
# rubocop:disable Lint/AssignmentInCondition
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put on the offending line

@@ -19,19 +18,21 @@ def self.instances
def self.prefetch(resources)
plugins = instances
resources.keys.each do |plugin|
# rubocop:disable Lint/AssignmentInCondition
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

put on the offending line

let(:facts) do
{
:osfamily => 'UNSUPPORTED',

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks weird, a misedit ?

@HelenCampbell HelenCampbell force-pushed the i18nTesting branch 2 times, most recently from cba18fe to e03d382 Compare August 24, 2017 09:19
return false unless hash.has_key?( other_key )
hash[key] = hash.delete( other_key )
return true;
def normalized!(hash, key)
Copy link
Contributor

@eputnam eputnam Aug 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

normalized?(hash,key)? as long as we're changing it. i guess that doesn't have much to do with rubocop specifically...

commands :mysqladmin => 'mysqladmin'
commands mysql: 'mysql'
commands mysqld: 'mysqld'
commands mysqladmin: 'mysqladmin'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was rocket alignment important here? this isn't the only module it's present in and it does have a certain allure.

table.sub(%r{^PROCEDURE (.*)(\..*)}, 'PROCEDURE `\1`\2')
else
table.sub(%r{^(.*)(\..*)}, '`\1`\2')
end
table_string
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need this if we're changing to the rubocop'd syntax?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure what you mean here?
Updated with all your other comments 👍

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can fix this later if needs be

def create
name = @resource[:name]
name = @resource[:name]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks kinda goofy, i wonder why it only de-aligned name

let(:facts) do
{
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lolwut

@HelenCampbell HelenCampbell changed the title (WIP) Update to enable Rubocop and contains Rubocop fixes in lib/ Update to enable Rubocop and contains Rubocop fixes in lib/ Aug 29, 2017
@tphoney tphoney merged commit 27b4eed into master Aug 29, 2017
@hunner hunner deleted the i18nTesting branch August 29, 2017 21:31
shawnferry pushed a commit to shawnferry/puppetlabs-mysql that referenced this pull request Mar 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants