default.yml in platform-style-0.1.4 vs default.yml in platform-style-0.2.0
- old
+ new
@@ -19,10 +19,13 @@
Enabled: false
GraphQL/ExtractType:
Enabled: false
+GraphQL/FieldMethod:
+ Enabled: false
+
# Layout
Layout/ClassStructure:
Categories:
associations:
@@ -46,11 +49,14 @@
- after_create
- after_save
- after_commit
macros:
- accepts_nested_attributes_for
+ - acts_as_sequenced
+ - counter_culture
- has_secure_token
+ - monetize
- serialize
module_inclusion:
- include
- prepend
- extend
@@ -71,13 +77,13 @@
- associations
- validations
- delegate
- callbacks
- macros
+ - public_class_methods
- initializer
- public_methods
- - public_class_methods
- protected_methods
- private_constants
- private_attributes
- private_methods
Enabled: true
@@ -144,20 +150,24 @@
- heredoc
CountComments: false
Enabled: true
Max: 200
+Metrics/CyclomaticComplexity:
+ Max: 10
+
Metrics/MethodLength:
CountAsOne:
- array
- hash
- heredoc
CountComments: false
Enabled: true
Max: 20
Exclude:
- db/data/*.rb
+ - db/migrate/*.rb
Metrics/ModuleLength:
CountAsOne:
- array
- hash
@@ -171,10 +181,11 @@
Naming/VariableNumber:
EnforcedStyle: snake_case
Exclude:
- app/graphql/types/**/*.rb
- spec/factories/**/*.rb
+ - spec/requests/**/*.rb
# RSpec
RSpec/ExampleLength:
CountAsOne:
@@ -193,10 +204,10 @@
RSpec/NamedSubject:
Enabled: false
RSpec/NestedGroups:
- Max: 4
+ Max: 5
RSpec/MultipleExpectations:
Max: 10
# Style