You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### A Ruby static code analyzer based on the community Ruby style guide.# Config file: `.rubocop.yml`# Run Rubocop with `rake rubocop`# https://github.com/bbatsov/rubocopgem'rubocop',require: false
Add the following to the Rakefile to enable rake rubocop and rake rubocop:auto_correct (Source):
We should use Rubocop to maintain a standardized style for Ruby code across the project.
Check out these rules:
SpaceBeforeBlockBraces
SpaceAroundBlockParameters
SpaceAroundEqualsInParameterDefault
EmptyLineBetweenDefs
All rules are listed in rubocop's default.yml.
Add the following to the
Gemfile
(Source):Add the following to the
Rakefile
to enablerake rubocop
andrake rubocop:auto_correct
(Source):Here's a
.rubycop.yml
to start with:Some custom cops we may want to look into:
The text was updated successfully, but these errors were encountered: