.rubocop.yml in activeadmin-1.0.0 vs .rubocop.yml in activeadmin-1.1.0
- old
+ new
@@ -1,10 +1,11 @@
---
AllCops:
DisabledByDefault: true
-
+ TargetRubyVersion: 2.2
+
Exclude:
- spec/rails/**/*
- gemfiles/vendor/bundle/**/*
Include:
@@ -15,13 +16,61 @@
DisplayCopNames: true
StyleGuideCopsOnly: false
+Lint/EndAlignment:
+ Enabled: true
+
+Layout/CaseIndentation:
+ Enabled: true
+
+Layout/ElseAlignment:
+ Enabled: true
+
+Layout/EmptyLines:
+ Enabled: true
+
+Layout/EndOfLine:
+ Enabled: true
+
+Layout/ExtraSpacing:
+ Enabled: true
+
+Style/Encoding:
+ EnforcedStyle: never
+ Enabled: true
+
Style/HashSyntax:
Enabled: true
-Style/TrailingWhitespace:
+Layout/IndentationConsistency:
Enabled: true
-Style/SpaceAfterComma:
+Layout/IndentationWidth:
+ Enabled: true
+
+Style/PredicateName:
+ Enabled: true
+
+ NamePrefixBlacklist:
+ - is_
+ - have_
+
+ NameWhitelist:
+ - has_many
+ - has_many_actions
+
+Layout/TrailingBlankLines:
+ Enabled: true
+
+Layout/TrailingWhitespace:
+ Enabled: true
+
+Layout/SpaceAfterComma:
+ Enabled: true
+
+Layout/SpaceAroundEqualsInParameterDefault:
+ Enabled: true
+
+Layout/SpaceInsideParens:
Enabled: true