-
Notifications
You must be signed in to change notification settings - Fork 9
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
[DEVX-4047] Bump rubocop to latest and fix offenses #118
Conversation
@toptal-anvil ping reviewers |
65cfb00
to
042298f
Compare
subject.email = login | ||
subject.save! | ||
user.email = login | ||
user.save! |
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.
Just out of curiosity? Why?
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.
Rubocop asked me to, and even though it incorrectly applied it's rule, I feel like this is a good move.
@@ -11,7 +9,7 @@ def self.defaults! | |||
path = CONFIG_DEFAULT.to_s | |||
hash = ConfigLoader.load_file(path) | |||
config = Config.new(hash, path).tap(&:make_excludes_absolute) | |||
puts "configuration from #{path}" if ConfigLoader.debug? | |||
Rails.logger.debug { "configuration from #{path}" } if ConfigLoader.debug? |
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.
What do you think about using global logger?
Rails.logger.debug { "configuration from #{path}" } if ConfigLoader.debug? | |
Granite::Form.config.logger.debug { "configuration from #{path}" } if ConfigLoader.debug? |
I do not see much usage of loggers in the repository but anyway it would be good to keep it generic.
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 was an automatic change by rubocop. We can discuss further changes as separate tickets @mbie
Updated rubocop, rubocop-rspec and rubocop-rails to the latest version, removed all of the rule overwriting and fixed the violations. Disabled 3 rules, which proved to be time consuming to fix.
Review
Pre-merge checklist
master
(if not - rebase it).