|
@@ -32,7 +32,7 @@ Rails:
|
|
|
Style/FrozenStringLiteralComment:
|
|
|
Enabled: false
|
|
|
|
|
|
-Metrics/LineLength:
|
|
|
+Layout/LineLength:
|
|
|
Description: 'Limit lines to 80 characters.'
|
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
|
|
|
Enabled: false
|
|
@@ -106,7 +106,7 @@ Style/MethodDefParentheses:
|
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#method-parens'
|
|
|
Enabled: false
|
|
|
|
|
|
-Layout/AlignHash:
|
|
|
+Layout/HashAlignment:
|
|
|
Description: >-
|
|
|
Align the elements of a hash literal if they span more than
|
|
|
one line.
|
|
@@ -155,6 +155,15 @@ Style/PerlBackrefs:
|
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
|
|
|
Enabled: false
|
|
|
|
|
|
+Style/HashEachMethods:
|
|
|
+ Enabled: true
|
|
|
+
|
|
|
+Style/HashTransformKeys:
|
|
|
+ Enabled: true
|
|
|
+
|
|
|
+Style/HashTransformValues:
|
|
|
+ Enabled: true
|
|
|
+
|
|
|
Style/SelfAssignment:
|
|
|
Description: >-
|
|
|
Checks for places where self-assignment shorthand should have
|
|
@@ -162,10 +171,6 @@ Style/SelfAssignment:
|
|
|
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
|
|
|
Enabled: false
|
|
|
|
|
|
-Style/BracesAroundHashParameters:
|
|
|
- Description: 'Enforce braces style around hash parameters.'
|
|
|
- Enabled: false
|
|
|
-
|
|
|
Rails/ApplicationRecord:
|
|
|
Exclude:
|
|
|
- 'app/models/application_model.rb'
|
|
@@ -210,7 +215,7 @@ Naming/VariableNumber:
|
|
|
Description: 'Use the configured style when numbering variables.'
|
|
|
Enabled: false
|
|
|
|
|
|
-Naming/UncommunicativeMethodParamName:
|
|
|
+Naming/MethodParameterName:
|
|
|
Description: >-
|
|
|
Checks for method parameter names that contain capital letters,
|
|
|
end in numbers, or do not meet a minimal length.
|