.rubocop.yml in pg_objects-0.5.2 vs .rubocop.yml in pg_objects-0.5.3
- old
+ new
@@ -20,10 +20,14 @@
# Gems in consecutive lines should be alphabetically sorted
Bundler/OrderedGems:
TreatCommentsAsGroupSeparators: true
# Layout ######################################################################
+# Limit lines to 80 characters.
+Layout/LineLength:
+ Max: 140
+
# Checks that the closing brace in an array literal is either on the same line
# as the last array element, or a new line.
Layout/MultilineArrayBraceLayout:
Enabled: true
EnforcedStyle: symmetrical
@@ -49,11 +53,11 @@
Layout/SpaceInsideStringInterpolation:
EnforcedStyle: no_space
Enabled: true
# Naming ######################################################################
-Naming/UncommunicativeMethodParamName:
+Naming/MethodParameterName:
MinNameLength: 2
# Use the configured style when naming variables.
Naming/VariableName:
EnforcedStyle: snake_case
@@ -71,10 +75,19 @@
# Checks if there is a magic comment to enforce string literals
Style/FrozenStringLiteralComment:
Enabled: false
+Style/HashEachMethods:
+ Enabled: true
+
+Style/HashTransformKeys:
+ Enabled: true
+
+Style/HashTransformValues:
+ Enabled: true
+
Style/RegexpLiteral:
EnforcedStyle: mixed
Enabled: false
# Checks for proper usage of fail and raise.
@@ -92,11 +105,11 @@
PreferredMethods:
intern: to_sym
Enabled: true
# Checks for %q/%Q when single quotes or double quotes would do.
-Style/UnneededPercentQ:
+Style/RedundantPercentQ:
Enabled: false
# Metrics #####################################################################
# A calculated magnitude based on number of assignments,
@@ -121,13 +134,9 @@
# A complexity metric that is strongly correlated to the number
# of test cases needed to validate a method.
# Metrics/CyclomaticComplexity:
# Enabled: true
# Max: 11
-
-# Limit lines to 80 characters.
-Metrics/LineLength:
- Max: 140
# Avoid methods longer than 10 lines of code.
# Metrics/MethodLength:
# Max: 50