Last active
August 29, 2015 14:07
-
-
Save Tzolkin/6fea37ea06040f0ee8bd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# rubocop config files for small Rails4/Ruby2 project | |
# blog post: http://joanswork.com/rubocop-rails-getting-started/ | |
# .rubocop.yml | |
AllCops: | |
Include: | |
- Rakefile | |
- config.ru | |
Exclude: | |
- db/schema.rb | |
LineLength: | |
Max: 179 # revisit | |
SpaceInsideHashLiteralBraces: | |
EnforcedStyle: no_space | |
MethodLength: | |
Max: 20 # revisit | |
HasAndBelongsToMany: # being used for a reason | |
Enabled: false | |
EmptyLinesAroundBody: # prefer empty line for legibility | |
Enabled: false | |
Documentation: # later - part of bigger project | |
Enabled: false | |
# ./db/migrate/.rubocop.yml | |
inherit_from: | |
- ../../.rubocop.yml | |
MethodLength: | |
Max: 200 | |
SingleSpaceBeforeFirstArg: | |
Enabled: false | |
# ./app/controllers/local_devise/.rubocop.yml | |
inherit_from: | |
- ../../../.rubocop.yml | |
ClassAndModuleChildren: | |
Enabled: false | |
AccessorMethodName: | |
Enabled: false | |
# ./spec/.rubocop.yml | |
inherit_from: | |
- ../.rubocop.yml | |
Blocks: | |
Enabled: false | |
StringLiterals: | |
Enabled: false | |
# ./spec/factories/.rubocop.yml | |
inherit_from: | |
- ../.rubocop.yml | |
LineLength: | |
Max: 2048 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment