.rubocop.yml in danger-apkstats-0.2.0 vs .rubocop.yml in danger-apkstats-0.3.0
- old
+ new
@@ -5,11 +5,11 @@
AllCops:
Exclude:
- 'vendor/**/*'
- 'spec/fixtures/**/*'
- 'tmp/**/*'
- TargetRubyVersion: 2.3.7
+ TargetRubyVersion: 2.7.1
Metrics/ModuleLength:
Exclude:
- 'spec/**/*'
Enabled: true
@@ -20,24 +20,20 @@
# kind_of? is a good way to check a type
Style/ClassCheck:
EnforcedStyle: kind_of?
-# It's better to be more explicit about the type
-Style/BracesAroundHashParameters:
- Enabled: false
-
# specs sometimes have useless assignments, which is fine
Lint/UselessAssignment:
Exclude:
- '**/spec/**/*'
# We could potentially enable the 2 below:
-Layout/IndentHash:
+Layout/FirstHashElementIndentation:
Enabled: false
-Layout/AlignHash:
+Layout/HashAlignment:
Enabled: false
# HoundCI doesn't like this rule
Layout/DotPosition:
Enabled: false
@@ -83,11 +79,11 @@
Metrics/CyclomaticComplexity:
Max: 17
# Configuration parameters: AllowURI, URISchemes.
-Metrics/LineLength:
+Layout/LineLength:
Max: 370
# Configuration parameters: CountKeywordArgs.
Metrics/ParameterLists:
Max: 10
@@ -134,20 +130,20 @@
- "**/*_spec.rb"
Style/MixinGrouping:
Enabled: false
-Style/FileName:
+Naming/FileName:
Enabled: false
-Layout/IndentHeredoc:
+Layout/HeredocIndentation:
Enabled: false
Style/SpecialGlobalVars:
Enabled: false
-PercentLiteralDelimiters:
+Department/PercentLiteralDelimiters:
PreferredDelimiters:
"%": ()
"%i": ()
"%q": ()
"%Q": ()
@@ -165,6 +161,45 @@
Style/TrailingCommaInArrayLiteral:
Enabled: false
Style/TrailingCommaInHashLiteral:
- Enabled: false
+ Enabled: false
+
+Layout/EmptyLinesAroundAttributeAccessor:
+ Enabled: true
+
+Layout/SpaceAroundMethodCallOperator:
+ Enabled: false
+
+Lint/DeprecatedOpenSSLConstant:
+ Enabled: false
+
+Lint/MixedRegexpCaptureTypes:
+ Enabled: false
+
+Lint/RaiseException:
+ Enabled: true
+
+Lint/StructNewOverride:
+ Enabled: true
+
+Style/ExponentialNotation:
+ Enabled: false
+
+Style/HashEachMethods:
+ Enabled: true
+
+Style/HashTransformKeys:
+ Enabled: true
+
+Style/HashTransformValues:
+ Enabled: true
+
+Style/RedundantRegexpCharacterClass:
+ Enabled: true
+
+Style/RedundantRegexpEscape:
+ Enabled: true
+
+Style/SlicingWithRange:
+ Enabled: true
\ No newline at end of file