.rubocop.yml in kpm-0.8.2 vs .rubocop.yml in kpm-0.9.0
- old
+ new
@@ -2,18 +2,42 @@
#AllCops:
# TargetRubyVersion: 2.2
Gemspec/RequiredRubyVersion:
Enabled: false
+Layout/LineLength:
+ Enabled: false
+
+Layout/EmptyLinesAroundAttributeAccessor:
+ Enabled: true
+
+Layout/SpaceAroundMethodCallOperator:
+ Enabled: true
+
# Alternative?
Gemspec/RubyVersionGlobalsUsage:
Enabled: false
Layout/DefEndAlignment:
AutoCorrect: true
-Lint/HandleExceptions:
+Lint/DeprecatedOpenSSLConstant:
+ Enabled: true
+
+Lint/DuplicateElsifCondition:
+ Enabled: true
+
+Lint/MixedRegexpCaptureTypes:
+ Enabled: true
+
+Lint/RaiseException:
+ Enabled: true
+
+Lint/StructNewOverride:
+ Enabled: true
+
+Lint/SuppressedException:
AllowComments: true
Metrics/AbcSize:
Enabled: false
@@ -27,13 +51,10 @@
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
-Metrics/LineLength:
- Enabled: false
-
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
@@ -45,14 +66,10 @@
Enabled: false
Security/YAMLLoad:
Enabled: false
-# We must support old Rubies
-Style/BracesAroundHashParameters:
- Enabled: false
-
Style/Documentation:
Enabled: false
Style/EmptyElse:
EnforcedStyle: empty
@@ -69,5 +86,53 @@
Style/SafeNavigation:
Enabled: false
Style/GuardClause:
Enabled: false
+
+Style/AccessorGrouping:
+ Enabled: true
+
+Style/ArrayCoercion:
+ Enabled: true
+
+Style/BisectedAttrAccessor:
+ Enabled: true
+
+Style/CaseLikeIf:
+ Enabled: true
+
+Style/ExponentialNotation:
+ Enabled: true
+
+Style/HashAsLastArrayItem:
+ Enabled: true
+
+Style/HashEachMethods:
+ Enabled: true
+
+Style/HashLikeCase:
+ Enabled: true
+
+Style/HashTransformKeys:
+ Enabled: true
+
+Style/HashTransformValues:
+ Enabled: true
+
+Style/RedundantAssignment:
+ Enabled: true
+
+Style/RedundantFetchBlock:
+ Enabled: true
+
+Style/RedundantFileExtensionInRequire:
+ Enabled: true
+
+Style/RedundantRegexpCharacterClass:
+ Enabled: true
+
+Style/RedundantRegexpEscape:
+ Enabled: true
+
+Style/SlicingWithRange:
+ Enabled: true