Skip to content
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

Adds Rubocop Setup and fixes #258

Merged
merged 6 commits into from
Mar 2, 2017
Merged

Adds Rubocop Setup and fixes #258

merged 6 commits into from
Mar 2, 2017

Conversation

petems
Copy link
Owner

@petems petems commented Mar 1, 2017

  • Mostly auto fixes with the -a flag
  • Add setup and rake task
  • 84 files inspected, 7161 offences detected, 6485 offences corrected

* Mostly auto fixes with the `-a` flag
* Add setup and rake task
* 84 files inspected, 7161 offences detected, 6485 offences corrected
* "Favor the use of sprintf and its alias format 
over the fairly cryptic String#% method."
* Avoids indentation issues
* DRY up the logic
* RSpec/InstanceVariable: Use let instead of an 
instance variable
* Lint/UselessAssignment: Useless assignment to variable
* Style/GuardClause: Use a guard clause instead of 
wrapping the code inside a conditional expression.
@petems petems merged commit c51b090 into petems:master Mar 2, 2017
@petems petems deleted the all_rubocop_fixes branch March 2, 2017 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant