Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Commit

Permalink
Add .rubocop.yml and .codeclimate.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eonu committed Aug 16, 2018
1 parent ce72221 commit 0c509a4
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
plugins:
rubocop:
enabled: true
135 changes: 135 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
require: rubocop-rspec

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Style/ClassAndModuleChildren:
Enabled: false

Style/EmptyElse:
Enabled: false

Style/CaseEquality:
Enabled: false

Style/FormatString:
EnforcedStyle: percent

Style/SignalException:
EnforcedStyle: semantic

Style/ParallelAssignment:
Enabled: false

Style/AndOr:
EnforcedStyle: conditionals

Style/Alias:
EnforcedStyle: prefer_alias_method

Style/EmptyCaseCondition:
Enabled: false

Style/PercentLiteralDelimiters:
PreferredDelimiters:
default: "{}"
"%w": "[]"
"%i": "[]"

Style/TrailingCommaInArguments:
Enabled: false

Style/TrailingCommaInLiteral:
Enabled: false

Style/ModuleFunction:
Enabled: true

Style/MultilineBlockChain:
Enabled: false

Style/Documentation:
Enabled: false

Style/AsciiComments:
Enabled: false

Metrics/LineLength:
Max: 200
Exclude:
- 'spec/**/*'

Metrics/BlockLength:
Exclude:
- 'spec/**/*'

Metrics/PerceivedComplexity:
Max: 8
Exclude:
- 'spec/**/*'

Metrics/AbcSize:
# Max: 27
Exclude:
- 'spec/**/*'

Metrics/ClassLength:
Max: 131

Metrics/CyclomaticComplexity:
Max: 14

Metrics/MethodLength:
Max: 30

Metrics/ModuleLength:
Max: 200
Exclude:
- 'spec/**/*'

Style/BlockDelimiters:
Enabled: false

Style/UnneededPercentQ:
Exclude:
- 'spec/**/*'

Style/FormatStringToken:
Enabled: false

# Specs
RSpec/LeadingSubject:
Enabled: false

RSpec/EmptyExampleGroup:
Enabled: false

RSpec/DescribeClass:
Enabled: true

RSpec/ExampleLength:
Enabled: false

RSpec/NestedGroups:
Enabled: true

RSpec/ContextWording:
Enabled: true

RSpec/BeforeAfterAll:
Enabled: true

RSpec/InstanceVariable:
Enabled: true

RSpec/NamedSubject:
Enabled: false

RSpec/ExampleWording:
Enabled: false

RSpec/MultipleExpectations:
Enabled: true

RSpec/DescribeSymbol:
Enabled: false

0 comments on commit 0c509a4

Please sign in to comment.