default.yml in platform-style-0.1.1 vs default.yml in platform-style-0.1.2
- old
+ new
@@ -56,10 +56,11 @@
- module_inclusion
- scopes
- public_constants
- public_attributes
- enum
+ - encrypts
- associations
- validations
- delegate
- callbacks
- macros
@@ -80,18 +81,20 @@
Enabled: true
EnforcedStyle: empty_lines_except_namespace
Layout/IndentationConsistency:
Enabled: true
- EnforcedStyle: indented_internal_methods
+ EnforcedStyle: normal
Layout/LineEndStringConcatenationIndentation:
Enabled: false
Layout/LineLength:
+ AllowedPatterns:
+ - \VCR.use_cassette\
Enabled: true
- Max: 100
+ Max: 120
Layout/MultilineMethodCallIndentation:
Enabled: true
EnforcedStyle: indented
@@ -99,31 +102,84 @@
Metrics/AbcSize:
Max: 30
Metrics/BlockLength:
+ AllowedMethods:
+ - context
+ - describe
+ - expects
+ - factory
+ - it
+ - promises
+ - shared_examples
+ - use_cassette
+ CountAsOne:
+ - array
+ - hash
+ - heredoc
+ CountComments: false
Enabled: true
Exclude:
- config/**/*
+ - Gemfile
+Metrics/ClassLength:
+ CountAsOne:
+ - array
+ - hash
+ - heredoc
+ CountComments: false
+ Enabled: true
+ Max: 200
+
Metrics/MethodLength:
- Enabled: false
+ CountAsOne:
+ - array
+ - hash
+ - heredoc
+ CountComments: false
+ Enabled: true
+ Max: 20
+Metrics/ModuleLength:
+ CountAsOne:
+ - array
+ - hash
+ - heredoc
+ CountComments: false
+ Enabled: true
+ Max: 200
+
# RSpec
RSpec/ExampleLength:
CountAsOne:
- array
- hash
- heredoc
Max: 20
+RSpec/LetSetup:
+ Enabled: false
+
+RSpec/MultipleMemoizedHelpers:
+ AllowSubject: true
+ Enabled: true
+ Max: 10
+
RSpec/NamedSubject:
Enabled: false
+RSpec/NestedGroups:
+ Max: 4
+
RSpec/MultipleExpectations:
Max: 10
# Style
Style/Documentation:
+ Enabled: false
+
+Style/MultilineIfModifier:
Enabled: false