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:
Jordon Bedwell 2016-01-03 02:19:42 -06:00
parent a2623be3da
commit b7d5a26d53
3 changed files with 56 additions and 39 deletions

View File

@ -1,28 +1,6 @@
engines: engines:
rubocop: rubocop: { enabled: true }
enabled: true fixme: { enabled: false }
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
exclude_paths: exclude_paths:
- .rubocop.yml - .rubocop.yml
- .codeclimate.yml - .codeclimate.yml
@ -40,8 +18,10 @@ exclude_paths:
- LICENSE - LICENSE
- test/**/* - test/**/*
- vendor/**/*
- features/**/*
- script/**/* - script/**/*
- spec/**/* - spec/**/*
ratings: ratings:
paths: paths:
- lib/**/* - lib/**/*.rb

View File

@ -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/MethodLength: { Max: 24 }
Metrics/ClassLength: { Max: 240 } Metrics/ClassLength: { Max: 240 }
Metrics/ModuleLength: { Max: 240 } Metrics/ModuleLength: { Max: 240 }
Metrics/LineLength: { Max: 112 } Metrics/LineLength: { Max: 112 }
Style/HashSyntax: Style/IndentHash: { EnforcedStyle: consistent }
UseHashRocketsWithSymbolValues: false Style/HashSyntax: { EnforcedStyle: hash_rockets }
SupportedStyles: [ruby19 ruby19_no_mixed_keys, hash_rockets] Style/SignalException: { EnforcedStyle: only_raise }
EnforcedStyle: ruby19 Style/SpaceAroundOperators: { AllowForAlignment: true }
Style/AlignParameters: { EnforcedStyle: with_fixed_indentation }
Style/MultilineOperationIndentation: Style/StringLiteralsInInterpolation: { EnforcedStyle: double_quotes }
EnforcedStyle: indented Style/MultilineOperationIndentation: { EnforcedStyle: indented }
SupportedStyles: # Style/StringLiterals: { EnforcedStyle: double_quotes }
- indented Style/RegexpLiteral: { EnforcedStyle: percent_r }
Style/IndentArray: { EnforcedStyle: consistent }
Style/PercentLiteralDelimiters: Style/PercentLiteralDelimiters:
PreferredDelimiters: PreferredDelimiters:
@ -27,3 +23,43 @@ Style/PercentLiteralDelimiters:
'%w': '()' '%w': '()'
'%W': '()' '%W': '()'
'%x': '()' '%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/**/*

View File

@ -6,6 +6,7 @@ group :development do
gem 'rdoc', '~> 4.2' gem 'rdoc', '~> 4.2'
gem 'launchy', '~> 2.3' gem 'launchy', '~> 2.3'
gem 'toml', '~> 0.1.0' gem 'toml', '~> 0.1.0'
gem "rubocop"
gem 'pry' gem 'pry'
end end