Rubocop changes (#3501)

* Update renamed rubocop configuration options

* Remove duplicate rubocop configuration, sort options
signup-info-prompt
Matt Jankowski 2017-06-01 11:24:30 -04:00 committed by Eugen Rochko
parent d010e270e6
commit cb7ee4698f
1 changed files with 40 additions and 46 deletions

View File

@ -1,22 +1,24 @@
Rails: AllCops:
Enabled: true TargetRubyVersion: 2.3
Exclude:
- 'spec/**/*'
- 'db/**/*'
- 'app/views/**/*'
- 'config/**/*'
- 'bin/*'
- 'Rakefile'
- 'node_modules/**/*'
- 'Vagrantfile'
- 'vendor/**/*'
Style/PerlBackrefs: Bundler/OrderedGems:
AutoCorrect: false
Style/ClassAndModuleChildren:
Enabled: false Enabled: false
Metrics/BlockNesting: Layout/AccessModifierIndentation:
Max: 2 EnforcedStyle: indent
Metrics/LineLength: Layout/SpaceInsideHashLiteralBraces:
AllowURI: true EnforcedStyle: space
Enabled: false
Metrics/MethodLength:
CountComments: false
Max: 10
Metrics/AbcSize: Metrics/AbcSize:
Max: 100 Max: 100
@ -31,22 +33,33 @@ Metrics/ClassLength:
Metrics/CyclomaticComplexity: Metrics/CyclomaticComplexity:
Max: 15 Max: 15
Metrics/LineLength:
AllowURI: true
Enabled: false
Metrics/MethodLength: Metrics/MethodLength:
CountComments: false
Max: 55 Max: 55
Metrics/ModuleLength: Metrics/ModuleLength:
CountComments: false CountComments: false
Max: 200 Max: 200
Metrics/PerceivedComplexity:
Max: 10
Metrics/ParameterLists: Metrics/ParameterLists:
Max: 4 Max: 4
CountKeywordArgs: true CountKeywordArgs: true
Style/AccessModifierIndentation: Metrics/PerceivedComplexity:
EnforcedStyle: indent Max: 10
Rails:
Enabled: true
Rails/HasAndBelongsToMany:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/CollectionMethods: Style/CollectionMethods:
Enabled: true Enabled: true
@ -62,36 +75,17 @@ Style/DoubleNegation:
Style/FrozenStringLiteralComment: Style/FrozenStringLiteralComment:
Enabled: true Enabled: true
Style/SpaceInsideHashLiteralBraces: Style/GuardClause:
EnforcedStyle: space
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: 'comma'
Style/RegexpLiteral:
Enabled: false Enabled: false
Style/Lambda: Style/Lambda:
Enabled: false Enabled: false
Style/GuardClause: Style/PerlBackrefs:
AutoCorrect: false
Style/RegexpLiteral:
Enabled: false Enabled: false
Rails/HasAndBelongsToMany: Style/TrailingCommaInLiteral:
Enabled: false EnforcedStyleForMultiline: 'comma'
Bundler/OrderedGems:
Enabled: false
AllCops:
TargetRubyVersion: 2.3
Exclude:
- 'spec/**/*'
- 'db/**/*'
- 'app/views/**/*'
- 'config/**/*'
- 'bin/*'
- 'Rakefile'
- 'node_modules/**/*'
- 'Vagrantfile'
- 'vendor/**/*'