config/rubocop.yml in unasukecop-0.4.0 vs config/rubocop.yml in unasukecop-0.5.0
- old
+ new
@@ -17,15 +17,10 @@
Metrics/MethodLength:
Max: 20
## Style
-# when copy-and-past to REPL, trailing dot is more safety
-# inherit from onkcop
-Style/DotPosition:
- EnforcedStyle: trailing
-
# just a preference
Style/EmptyMethod:
EnforcedStyle: expanded
# I like sprintf than format
@@ -35,19 +30,10 @@
# not to use hash rockets
# but unification is more important
Style/HashSyntax:
EnforcedStyle: ruby19_no_mixed_keys
-# more short line length and compact diff when change method name
-# inherit from onkcop
-Style/IndentArray:
- EnforcedStyle: consistent
-
-# same as reason of Style/IndentArray
-Style/IndentHash:
- EnforcedStyle: consistent
-
# just a preference
Style/InlineComment:
Enabled: false
# I use both
@@ -77,5 +63,21 @@
EnforcedStyleForMultiline: consistent_comma
# same as reason of Style/TrailingCommaInArguments
Style/TrailingCommaInLiteral:
EnforcedStyleForMultiline: consistent_comma
+
+## Layout
+
+# when copy-and-past to REPL, trailing dot is more safety
+# inherit from onkcop
+Layout/DotPosition:
+ EnforcedStyle: trailing
+
+# more short line length and compact diff when change method name
+# inherit from onkcop
+Layout/IndentArray:
+ EnforcedStyle: consistent
+
+# same as reason of Style/IndentArray
+Layout/IndentHash:
+ EnforcedStyle: consistent