Move around CodeClimate so people can do `bundle exec rubocop`.
/cc @pathawks -- This is why you were not getting the custom settings we had made and some things were showing up as broken when they weren't. Sorry.
This commit is contained in:
parent
a2623be3da
commit
b7d5a26d53
|
@ -1,28 +1,6 @@
|
|||
engines:
|
||||
rubocop:
|
||||
enabled: true
|
||||
checks:
|
||||
Rubocop/Style/SpaceInsideBrackets: { enabled: false }
|
||||
Rubocop/Style/BracesAroundHashParameters: { enabled: false}
|
||||
Rubocop/Style/EmptyLinesAroundAccessModifier: { enabled: false }
|
||||
Rubocop/Style/EmptyLinesAroundModuleBody: { enabled: false }
|
||||
Rubocop/Lint/FormatParameterMismatch: { enabled: false }
|
||||
Rubocop/Lint/UselessAccessModifier: { enabled: false }
|
||||
Rubocop/Lint/AssignmentInCondition: { enabled: false }
|
||||
Rubocop/Style/SpaceAroundOperators: { enabled: false }
|
||||
Rubocop/Style/AlignParameters: { enabled: false }
|
||||
Rubocop/Style/SignalException: { enabled: false }
|
||||
Rubocop/Style/Documentation: { enabled: false }
|
||||
Rubocop/Style/DoubleNegation: { enabled: false }
|
||||
Rubocop/Style/UnneededCapitalW: { enabled: false }
|
||||
Rubocop/Style/IfUnlessModifier: { enabled: false }
|
||||
Rubocop/Style/RescueModifier: { enabled: false }
|
||||
Rubocop/Style/RegexpLiteral: { enabled: false }
|
||||
Rubocop/Style/GuardClause: { enabled: false }
|
||||
Rubocop/Style/FileName: { enabled: false }
|
||||
Rubocop/Style/ModuleFunction: { enabled: false }
|
||||
fixme:
|
||||
enabled: false
|
||||
rubocop: { enabled: true }
|
||||
fixme: { enabled: false }
|
||||
exclude_paths:
|
||||
- .rubocop.yml
|
||||
- .codeclimate.yml
|
||||
|
@ -40,8 +18,10 @@ exclude_paths:
|
|||
- LICENSE
|
||||
|
||||
- test/**/*
|
||||
- vendor/**/*
|
||||
- features/**/*
|
||||
- script/**/*
|
||||
- spec/**/*
|
||||
ratings:
|
||||
paths:
|
||||
- lib/**/*
|
||||
- lib/**/*.rb
|
||||
|
|
64
.rubocop.yml
64
.rubocop.yml
|
@ -1,22 +1,18 @@
|
|||
Style/IndentHash: { EnforcedStyle: align_braces }
|
||||
Style/StringLiteralsInInterpolation: { EnforcedStyle: double_quotes }
|
||||
Style/IndentArray: { EnforcedStyle: consistent }
|
||||
Style/IndentHash: { EnforcedStyle: consistent }
|
||||
Style/StringLiterals: { EnforcedStyle: none }
|
||||
Metrics/MethodLength: { Max: 24 }
|
||||
Metrics/ClassLength: { Max: 240 }
|
||||
Metrics/ModuleLength: { Max: 240 }
|
||||
Metrics/LineLength: { Max: 112 }
|
||||
|
||||
Style/HashSyntax:
|
||||
UseHashRocketsWithSymbolValues: false
|
||||
SupportedStyles: [ruby19 ruby19_no_mixed_keys, hash_rockets]
|
||||
EnforcedStyle: ruby19
|
||||
|
||||
Style/MultilineOperationIndentation:
|
||||
EnforcedStyle: indented
|
||||
SupportedStyles:
|
||||
- indented
|
||||
Style/IndentHash: { EnforcedStyle: consistent }
|
||||
Style/HashSyntax: { EnforcedStyle: hash_rockets }
|
||||
Style/SignalException: { EnforcedStyle: only_raise }
|
||||
Style/SpaceAroundOperators: { AllowForAlignment: true }
|
||||
Style/AlignParameters: { EnforcedStyle: with_fixed_indentation }
|
||||
Style/StringLiteralsInInterpolation: { EnforcedStyle: double_quotes }
|
||||
Style/MultilineOperationIndentation: { EnforcedStyle: indented }
|
||||
# Style/StringLiterals: { EnforcedStyle: double_quotes }
|
||||
Style/RegexpLiteral: { EnforcedStyle: percent_r }
|
||||
Style/IndentArray: { EnforcedStyle: consistent }
|
||||
|
||||
Style/PercentLiteralDelimiters:
|
||||
PreferredDelimiters:
|
||||
|
@ -27,3 +23,43 @@ Style/PercentLiteralDelimiters:
|
|||
'%w': '()'
|
||||
'%W': '()'
|
||||
'%x': '()'
|
||||
|
||||
Style/StringLiterals: { Enabled: false }
|
||||
Style/Documentation: { Enabled: false }
|
||||
Style/DoubleNegation: { Enabled: false }
|
||||
Style/UnneededCapitalW: { Enabled: false }
|
||||
Style/EmptyLinesAroundModuleBody: { Enabled: false }
|
||||
Style/EmptyLinesAroundAccessModifier: { Enabled: false }
|
||||
Style/BracesAroundHashParameters: { Enabled: false }
|
||||
Style/SpaceInsideBrackets: { Enabled: false }
|
||||
Style/IfUnlessModifier: { Enabled: false }
|
||||
Style/ModuleFunction: { Enabled: false }
|
||||
Style/RescueModifier: { Enabled: false }
|
||||
Style/GuardClause: { Enabled: false }
|
||||
Style/FileName: { Enabled: false }
|
||||
|
||||
AllCops:
|
||||
Include:
|
||||
- lib/**/*.rb
|
||||
|
||||
Exclude:
|
||||
- .rubocop.yml
|
||||
- .codeclimate.yml
|
||||
- .travis.yml
|
||||
- .gitignore
|
||||
- .rspec
|
||||
|
||||
- Gemfile.lock
|
||||
- CHANGELOG.md
|
||||
- readme.md
|
||||
- README.md
|
||||
- Readme.md
|
||||
- ReadMe.md
|
||||
- COPYING
|
||||
- LICENSE
|
||||
|
||||
- test/**/*
|
||||
- vendor/**/*
|
||||
- features/**/*
|
||||
- script/**/*
|
||||
- spec/**/*
|
||||
|
|
Loading…
Reference in New Issue