diff --git a/rubocop-rails.yml b/rubocop-rails.yml index 14721cf..3188f21 100644 --- a/rubocop-rails.yml +++ b/rubocop-rails.yml @@ -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 diff --git a/rubocop-rspec.yml b/rubocop-rspec.yml index 2e0feb8..2b9d86a 100644 --- a/rubocop-rspec.yml +++ b/rubocop-rspec.yml @@ -1,6 +1,20 @@ -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 @@ -8,6 +22,29 @@ Metrics/BlockLength: - 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: @@ -23,4 +60,3 @@ RSpec/NamedSubject: Enabled: false RSpec/NotToNot: Enabled: false -