config/.base_rubocop.yml in fablicop-1.4.1 vs config/.base_rubocop.yml in fablicop-1.5.0
- old
+ new
@@ -205,37 +205,32 @@
Lint/ParenthesesAsGroupedExpression:
Enabled: false
##################### Metrics ##################################
-# There is something wrong with more than 20 lines aside from migration files.
+Metrics/AbcSize:
+ Enabled: false
+
+Metrics/BlockLength:
+ Enabled: false
+
+Metrics/ClassLength:
+ Enabled: false
+
+Metrics/CyclomaticComplexity:
+ Enabled: false
+
Metrics/MethodLength:
- Max: 20
- Exclude:
- - "db/migrate/*.rb"
+ Enabled: false
-# We want to measure this metrics without keyword arguments.
+Metrics/ModuleLength:
+ Enabled: false
+
Metrics/ParameterLists:
CountKeywordArgs: false
-Metrics/BlockLength:
- Max: 100
- Exclude:
- - "spec/**/*.rb"
- - "test/**/*.rb"
- - "app/admin/*.rb"
- - "config/**/*.rb"
-
-# We discussed internally about this parameter and decided to follow this configuration.
-# https://github.com/onk/onkcop/blob/8066859d3d00328146c1da9e57bdd4a951974ef2/config/rubocop.yml#L113-L116
-Metrics/AbcSize:
- Max: 20
- Exclude:
- - "test/**/*.rb"
-
-Metrics/ClassLength:
- Exclude:
- - "test/**/*.rb"
+Metrics/PerceivedComplexity:
+ Enabled: false
# Does the variable name for an exception object really matter?
# There are many things to think about before taking care of it.
Naming/RescuedExceptionsVariableName:
Enabled: false