-
Notifications
You must be signed in to change notification settings - Fork 795
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
Conversation
end | ||
|
||
def destroy | ||
# rubocop:disable Lint/UselessAssignment |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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', | ||
|
There was a problem hiding this comment.
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 ?
cba18fe
to
e03d382
Compare
return false unless hash.has_key?( other_key ) | ||
hash[key] = hash.delete( other_key ) | ||
return true; | ||
def normalized!(hash, key) |
There was a problem hiding this comment.
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...
lib/puppet/provider/mysql.rb
Outdated
commands :mysqladmin => 'mysqladmin' | ||
commands mysql: 'mysql' | ||
commands mysqld: 'mysqld' | ||
commands mysqladmin: 'mysqladmin' |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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 👍
There was a problem hiding this comment.
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] |
There was a problem hiding this comment.
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 | ||
{ | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lolwut
e03d382
to
c559036
Compare
No description provided.