.rubocop.yml in active_model_serializers-0.10.0.rc4 vs .rubocop.yml in active_model_serializers-0.10.0.rc5
- old
+ new
@@ -1,20 +1,26 @@
inherit_from: .rubocop_todo.yml
AllCops:
+ TargetRubyVersion: 2.2
Exclude:
- config/initializers/forbidden_yaml.rb
- !ruby/regexp /(vendor|bundle|bin|db|tmp)\/.*/
- RunRailsCops: true
DisplayCopNames: true
DisplayStyleGuide: true
+Rails:
+ Enabled: true
+
Lint/NestedMethodDefinition:
Enabled: false
Exclude:
- test/action_controller/serialization_test.rb
+Style/Alias:
+ EnforcedStyle: prefer_alias
+
Style/StringLiterals:
EnforcedStyle: single_quotes
Metrics/AbcSize:
Max: 35 # TODO: Lower to 15
@@ -56,9 +62,21 @@
EnforcedStyle: indented
Style/BlockDelimiters:
Enabled: true
EnforcedStyle: line_count_based
+
+Style/SignalException:
+ EnforcedStyle: semantic
+
+Style/TrailingCommaInLiteral:
+ EnforcedStyleForMultiline: no_comma
+
+Style/ConditionalAssignment:
+ Enabled: false
+
+Style/DotPosition:
+ EnforcedStyle: leading
########## test_helper.rb sanity
Style/EndBlock:
Exclude:
- test/test_helper.rb