This commit is contained in:
Aditya Chatterjee 2016-02-27 17:03:43 +05:30
parent 28e55f3f50
commit a5a2db4077
156 changed files with 3203 additions and 1206 deletions

View file

@ -1,3 +1,5 @@
Rails:
Enabled: true
inherit_from: .rubocop_todo.yml
Style/HashSyntax:
@ -24,10 +26,6 @@ Style/EmptyLines:
Style/EmptyLinesAroundAccessModifier:
Enabled: true
# Do not insert empty line after class definition and before closing class
Style/EmptyLinesAroundBody:
Enabled: true
# Use hash literal {} instead of Hash.new
Style/EmptyLiteral:
Enabled: true
@ -93,12 +91,11 @@ Style/AndOr:
Enabled: true
# avoid deep blocks nesting
Style/BlockNesting:
Metrics/BlockNesting:
Max: 4
# use do instead of {...} in multiline blocks
Style/Blocks:
Enabled: true
Metrics/ClassLength:
Max: 550
# avoid redundunt curly braces when it is obvious that hash is used
Style/BracesAroundHashParameters:
@ -129,3 +126,4 @@ AllCops:
- 'vendor/bundle/**/*'
- 'bundle/**/*'
- 'config/**/*'
- 'bin/*'