Skip to content

Commit

Permalink
Update the Hound/Rubocop configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
lowjoel committed Mar 29, 2016
1 parent 3b31cc6 commit 2eb81e8
Show file tree
Hide file tree
Showing 3 changed files with 157 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ruby:
config_file: .rubocop.yml
109 changes: 109 additions & 0 deletions .rubocop.unhound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
Style/CollectionMethods:
Enabled: true
PreferredMethods:
reduce:
inject: 'reduce'
find:
detect: 'find'

Style/FileName:
Enabled: true

Style/GuardClause:
Enabled: true

Style/IfUnlessModifier:
Enabled: true

Style/PercentLiteralDelimiters:
Enabled: true

Style/SignalException:
Enabled: true

Style/SingleLineBlockParams:
Enabled: true

Style/SingleLineMethods:
Enabled: true

Style/TrailingCommaInArguments:
Enabled: true

Style/TrailingCommaInLiteral:
Enabled: true

Metrics/AbcSize:
Enabled: true

Metrics/ClassLength:
Enabled: true

Metrics/ModuleLength:
Enabled: true

Metrics/CyclomaticComplexity:
Enabled: true

Metrics/MethodLength:
Enabled: true

Metrics/ParameterLists:
Enabled: true

Metrics/PerceivedComplexity:
Enabled: true

Lint/AssignmentInCondition:
Enabled: true

Style/AccessorMethodName:
Enabled: true

Style/Alias:
Enabled: true
EnforcedStyle: prefer_alias_method

Style/Documentation:
Enabled: true

Style/DoubleNegation:
Enabled: true

Style/EachWithObject:
Enabled: true

Style/EmptyLiteral:
Enabled: true

Style/ModuleFunction:
Enabled: true

Style/OneLineConditional:
Enabled: true

Style/PerlBackrefs:
Enabled: true

Style/SpecialGlobalVars:
Enabled: true

Style/VariableInterpolation:
Enabled: true

Style/WhenThen:
Enabled: true

Lint/EachWithObjectArgument:
Enabled: true

Lint/HandleExceptions:
Enabled: true

Lint/LiteralInCondition:
Description: Checks of literals used in conditions.
Enabled: true

Lint/LiteralInInterpolation:
Description: Checks for literals used in interpolation.
Enabled: true
46 changes: 46 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
inherit_from:
- .rubocop.unhound.yml

AllCops:
Include:
- '**/Gemfile'
- '**/Rakefile'
Exclude:
- 'vendor/bundle/**/*'
TargetRubyVersion: 2.1

Metrics/LineLength:
Max: 100

Style/ClassAndModuleChildren:
EnforcedStyle: compact

Style/DotPosition:
EnforcedStyle: trailing

Style/Documentation:
Enabled: false

Style/IndentHash:
EnforcedStyle: consistent

Style/IfUnlessModifier:
MaxLineLength: 100

Style/ParallelAssignment:
Enabled: false

Style/StringLiterals:
EnforcedStyle: single_quotes

Style/WhileUntilModifier:
MaxLineLength: 100

Style/WordArray:
Enabled: false

Style/RegexpLiteral:
AllowInnerSlashes: true

Style/ClassAndModuleChildren:
EnforcedStyle: compact

0 comments on commit 2eb81e8

Please sign in to comment.