Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 60 additions & 6 deletions rubocop-rails.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,72 @@
inherit_from:
- https://raw.githubusercontent.com/leanpanda-com/rubocop/master/rubocop.yml
- https://raw.githubusercontent.com/leanpanda-com/rubocop/master/rubocop-rspec.yml
require: rubocop-rspec

AllCops:
Exclude:
- ".bundle/**/*"
- "bin/**/*"
- "bundle/**/*"
- "db/schema.rb"
- "node_modules/**/*"
TargetRubyVersion: 2.3

Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/DotPosition:
EnforcedStyle: trailing
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Metrics/AbcSize:
Exclude:
- "db/migrate/*"
Metrics/BlockLength:
Exclude:
- "db/seeds.rb"
ExcludedMethods:
- context
- describe
- feature
- shared_examples
- shared_examples_for
- namespace
- draw

Metrics/AbcSize:
Exclude:
- "db/migrate/*"
Metrics/MethodLength:
Exclude:
- "db/migrate/*"

Style/ClassAndModuleChildren:
EnforcedStyle: compact
Style/Documentation:
Enabled: false
Style/EmptyCaseCondition:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FrozenStringLiteralComment:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/NegatedIf:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/SymbolArray:
Enabled: false

RSpec/DescribeClass:
Exclude:
- spec/*
- spec/features/**/*
- spec/requests/**/*
RSpec/LetSetup:
Enabled: false
RSpec/MultipleExpectations:
Exclude:
- spec/features/**/*
RSpec/NamedSubject:
Enabled: false
RSpec/NotToNot:
Enabled: false
40 changes: 38 additions & 2 deletions rubocop-rspec.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,50 @@
inherit_from: https://raw.githubusercontent.com/leanpanda-com/rubocop/master/rubocop.yml
require: rubocop-rspec

AllCops:
Exclude:
- "bin/**/*"
- ".bundle/**/*"
- "bundle/**/*"
- "node_modules/**/*"
TargetRubyVersion: 2.3

Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/DotPosition:
EnforcedStyle: trailing
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Metrics/BlockLength:
ExcludedMethods:
- context
- describe
- feature
- shared_examples
- shared_examples_for
- namespace
- draw

Style/ClassAndModuleChildren:
EnforcedStyle: compact
Style/Documentation:
Enabled: false
Style/EmptyCaseCondition:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/FrozenStringLiteralComment:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/NegatedIf:
Enabled: false
Style/PercentLiteralDelimiters:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/SymbolArray:
Enabled: false

RSpec/DescribeClass:
Exclude:
Expand All @@ -23,4 +60,3 @@ RSpec/NamedSubject:
Enabled: false
RSpec/NotToNot:
Enabled: false