.rubocop.yml in schema_serializer-0.0.10 vs .rubocop.yml in schema_serializer-0.1.0
- old
+ new
@@ -1,31 +1,23 @@
AllCops:
+ TargetRubyVersion: 2.6
Exclude:
- "node_modules/**/*"
- "vendor/**/*"
- - "db/schema.rb"
-Layout/ExtraSpacing:
- Exclude:
- - "db/migrate/*.rb"
-
-Layout/IndentArray:
+Layout/IndentFirstArrayElement:
EnforcedStyle: consistent
-Layout/IndentHash:
+Layout/IndentFirstHashElement:
EnforcedStyle: consistent
Layout/IndentationConsistency:
- Enabled: true
- EnforcedStyle: rails
+ EnforcedStyle: indented_internal_methods
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented_relative_to_receiver
-Layout/SpaceInsideBlockBraces:
- SpaceBeforeBlockParameters: false
-
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*_spec.rb"
Lint/InheritException:
@@ -36,42 +28,30 @@
Lint/UnusedMethodArgument:
Enabled: false
Metrics/AbcSize:
- Max: 25
+ Max: 24
Metrics/BlockLength:
Exclude:
- - "Rakefile"
- - "**/*.rake"
- "spec/**/*.rb"
- "Gemfile"
- - "config/environments/*.rb"
- - "config/routes.rb"
- - "config/routes/**/*.rb"
- "*.gemspec"
CyclomaticComplexity:
Max: 10
Metrics/LineLength:
Max: 120
- Exclude:
- - "db/migrate/*.rb"
Metrics/MethodLength:
Max: 20
- Exclude:
- - "db/migrate/*.rb"
Naming/UncommunicativeMethodParamName:
Enabled: false
-Performance/Casecmp:
- Enabled: false
-
Security/YAMLLoad:
Enabled: false
Style/Alias:
EnforcedStyle: prefer_alias_method
@@ -119,20 +99,18 @@
Style/FrozenStringLiteralComment:
Enabled: false
Style/HashSyntax:
Exclude:
- - "**/*.rake"
- "Rakefile"
Style/MultilineBlockChain:
Enabled: false
Style/MixinUsage:
Exclude:
- "bin/setup"
- - "bin/update"
Style/NumericLiterals:
MinDigits: 7
Strict: true
@@ -140,10 +118,13 @@
Enabled: false
Style/OrAssignment:
Enabled: false
+Style/PercentLiteralDelimiters:
+ Enabled: false
+
Style/PreferredHashMethods:
EnforcedStyle: verbose
Style/RedundantReturn:
AllowMultipleReturnValues: true
@@ -158,10 +139,13 @@
EnforcedStyle: double_quotes
Style/StringLiteralsInInterpolation:
EnforcedStyle: double_quotes
+Style/SymbolArray:
+ Enabled: false
+
Style/TernaryParentheses:
EnforcedStyle: require_parentheses_when_complex
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma
@@ -170,7 +154,7 @@
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
-Style/YodaCondition:
- EnforcedStyle: equality_operators_only
+Style/WordArray:
+ Enabled: false