.rubocop.yml in email_inquire-0.6.0 vs .rubocop.yml in email_inquire-0.7.0
- old
+ new
@@ -1,10 +1,64 @@
AllCops:
Exclude:
- 'bin/*'
TargetRubyVersion: 2.3
+Layout/AccessModifierIndentation:
+ EnforcedStyle: indent
+ SupportedStyles:
+ - outdent
+ - indent
+
+Layout/AlignHash:
+ EnforcedHashRocketStyle: key
+ EnforcedColonStyle: key
+ EnforcedLastArgumentHashStyle: always_inspect
+
+Layout/AlignParameters:
+ EnforcedStyle: with_fixed_indentation
+
+Layout/EmptyLinesAroundClassBody:
+ EnforcedStyle: empty_lines_except_namespace
+
+Layout/EmptyLinesAroundModuleBody:
+ EnforcedStyle: empty_lines_except_namespace
+
+Layout/ExtraSpacing:
+ AllowForAlignment: false
+
+Layout/FirstArrayElementLineBreak:
+ Enabled: true
+
+Layout/FirstHashElementLineBreak:
+ Enabled: true
+
+Layout/FirstMethodArgumentLineBreak:
+ Enabled: true
+
+Layout/FirstParameterIndentation:
+ EnforcedStyle: consistent
+
+Layout/IndentArray:
+ EnforcedStyle: consistent
+
+Layout/IndentHash:
+ EnforcedStyle: consistent
+
+Layout/MultilineAssignmentLayout:
+ Enabled: true
+ EnforcedStyle: new_line
+
+Layout/MultilineMethodCallIndentation:
+ EnforcedStyle: indented
+
+Layout/MultilineOperationIndentation:
+ EnforcedStyle: indented
+
+Layout/SpaceBeforeFirstArg:
+ AllowForAlignment: false
+
Metrics/AbcSize:
Max: 20 # default: 15
Metrics/ClassLength:
Enabled: false # todo
@@ -25,54 +79,50 @@
Metrics/PerceivedComplexity:
Enabled: false # todo
Max: 10 # default: 7
-Style/AccessModifierIndentation:
- EnforcedStyle: indent
- SupportedStyles:
- - outdent
- - indent
-
-Style/AlignHash:
- EnforcedHashRocketStyle: key
- EnforcedColonStyle: key
- EnforcedLastArgumentHashStyle: always_inspect
-
-Style/AlignParameters:
- EnforcedStyle: with_fixed_indentation
-
Style/BracesAroundHashParameters:
Enabled: false
Style/Documentation:
Enabled: false
-Style/EmptyLinesAroundClassBody:
- EnforcedStyle: empty_lines
-
-Style/EmptyLinesAroundModuleBody:
- EnforcedStyle: empty_lines
-
-Style/FirstParameterIndentation:
- EnforcedStyle: consistent
-
Style/FrozenStringLiteralComment:
Enabled: true
-Style/IndentHash:
- EnforcedStyle: consistent
+Style/MethodCallWithArgsParentheses:
+ Enabled: true # false by default
+ Exclude:
+ - "config/routes.rb"
+ - "config/routes/*"
+ - "Gemfile"
+ - "**/*.gemspec"
+ IgnoreMacros: true
+ IgnoredMethods:
+ - include
+ - load
+ - print
+ - puts
+ - raise
+ - require
+ # rake
+ - desc
+ - namespace
+ - task
+ # swagger
+ - key
+ - operation
+ - property
+ - response
+ - security_definition
+ - swagger_path
+ - swagger_schema
Style/ModuleFunction:
Enabled: false
-Style/MultilineMethodCallIndentation:
- EnforcedStyle: indented
-
-Style/MultilineOperationIndentation:
- EnforcedStyle: indented
-
Style/SignalException:
EnforcedStyle: only_raise
Style/StringLiterals:
EnforcedStyle: double_quotes
@@ -83,5 +133,8 @@
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: no_comma
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: comma
+
+Style/VariableNumber:
+ EnforcedStyle: snake_case