Commit fa58ec38 by Pat Brisbin Committed by Tute Costa

Add Code Climate Config (#2275)

Adds a Code Climate configuration enabling Fixme, Rubocop, and
Duplication.

The Code Climate RuboCop engine uses a newer version of RuboCop than the
current Hound config, so .hound.yml was modified to work for both. The
only notable change was removing PreferredHashMethods because there is
no syntax for that cop that works with bout Hound and Code Climate.
parent 2edf0459
---
engines:
duplication:
enabled: true
config:
languages:
- ruby
fixme:
enabled: true
rubocop:
enabled: true
ratings:
paths:
- "**.rb"
exclude_paths:
- features/
- spec/
...@@ -20,7 +20,8 @@ AllCops: ...@@ -20,7 +20,8 @@ AllCops:
- "db/schema.rb" - "db/schema.rb"
- 'vendor/**/*' - 'vendor/**/*'
- 'gemfiles/vendor/**/*' - 'gemfiles/vendor/**/*'
RunRailsCops: false Rails:
Enabled: false
DisplayCopNames: false DisplayCopNames: false
StyleGuideCopsOnly: false StyleGuideCopsOnly: false
Style/AccessModifierIndentation: Style/AccessModifierIndentation:
...@@ -434,7 +435,7 @@ Style/TrailingBlankLines: ...@@ -434,7 +435,7 @@ Style/TrailingBlankLines:
SupportedStyles: SupportedStyles:
- final_newline - final_newline
- final_blank_line - final_blank_line
Style/TrailingComma: Style/TrailingCommaInLiteral:
Description: Checks for trailing comma in parameter lists and literals. Description: Checks for trailing comma in parameter lists and literals.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
Enabled: false Enabled: false
...@@ -560,11 +561,6 @@ Rails/ActionFilter: ...@@ -560,11 +561,6 @@ Rails/ActionFilter:
- filter - filter
Include: Include:
- app/controllers/**/*.rb - app/controllers/**/*.rb
Rails/DefaultScope:
Description: Checks if the argument passed to default_scope is a block.
Enabled: true
Include:
- app/models/**/*.rb
Rails/HasAndBelongsToMany: Rails/HasAndBelongsToMany:
Description: Prefer has_many :through to has_and_belongs_to_many. Description: Prefer has_many :through to has_and_belongs_to_many.
Enabled: true Enabled: true
...@@ -685,10 +681,6 @@ Style/DefWithParentheses: ...@@ -685,10 +681,6 @@ Style/DefWithParentheses:
Description: Use def with parentheses when there are arguments. Description: Use def with parentheses when there are arguments.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
Enabled: true Enabled: true
Style/DeprecatedHashMethods:
Description: Checks for use of deprecated Hash methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
Enabled: false
Style/Documentation: Style/Documentation:
Description: Document classes and non-namespace modules. Description: Document classes and non-namespace modules.
Enabled: false Enabled: false
...@@ -840,7 +832,7 @@ Style/SelfAssignment: ...@@ -840,7 +832,7 @@ Style/SelfAssignment:
used. used.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
Enabled: false Enabled: false
Style/SingleSpaceBeforeFirstArg: Style/SpaceBeforeFirstArg:
Description: Checks that exactly one space is used between a method name and the Description: Checks that exactly one space is used between a method name and the
first argument for method calls without parentheses. first argument for method calls without parentheses.
Enabled: true Enabled: true
...@@ -852,7 +844,7 @@ Style/SpaceAfterComma: ...@@ -852,7 +844,7 @@ Style/SpaceAfterComma:
Description: Use spaces after commas. Description: Use spaces after commas.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
Enabled: true Enabled: true
Style/SpaceAfterControlKeyword: Style/SpaceAroundKeyword:
Description: Use spaces after if/elsif/unless/while/until/case/when. Description: Use spaces after if/elsif/unless/while/until/case/when.
Enabled: true Enabled: true
Style/SpaceAfterMethodName: Style/SpaceAfterMethodName:
...@@ -881,9 +873,6 @@ Style/SpaceAroundOperators: ...@@ -881,9 +873,6 @@ Style/SpaceAroundOperators:
Description: Use spaces around operators. Description: Use spaces around operators.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
Enabled: true Enabled: true
Style/SpaceBeforeModifierKeyword:
Description: Put a space before the modifier keyword.
Enabled: true
Style/SpaceInsideBrackets: Style/SpaceInsideBrackets:
Description: No spaces after [ or before ]. Description: No spaces after [ or before ].
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment