.rubocop.yml in active_model_serializers-0.10.0.rc3 vs .rubocop.yml in active_model_serializers-0.10.0.rc4

- old
+ new

@@ -6,43 +6,10 @@ - !ruby/regexp /(vendor|bundle|bin|db|tmp)\/.*/ RunRailsCops: true DisplayCopNames: true DisplayStyleGuide: true -Style/IndentationConsistency: - Exclude: - - lib/active_model/serializer/adapter/flatten_json.rb - - lib/active_model/serializer/adapter/fragment_cache.rb - - lib/active_model/serializer/adapter/json.rb - - lib/active_model/serializer/adapter/json/fragment_cache.rb - - lib/active_model/serializer/adapter/json_api.rb - - lib/active_model/serializer/adapter/json_api/fragment_cache.rb - - lib/active_model/serializer/adapter/json_api/pagination_links.rb - - lib/active_model/serializer/adapter/null.rb - -Style/IndentationWidth: - Exclude: - - lib/active_model/serializer/adapter/flatten_json.rb - - lib/active_model/serializer/adapter/fragment_cache.rb - - lib/active_model/serializer/adapter/json.rb - - lib/active_model/serializer/adapter/json/fragment_cache.rb - - lib/active_model/serializer/adapter/json_api.rb - - lib/active_model/serializer/adapter/json_api/fragment_cache.rb - - lib/active_model/serializer/adapter/json_api/pagination_links.rb - - lib/active_model/serializer/adapter/null.rb - -Style/AccessModifierIndentation: - Exclude: - - lib/active_model/serializer/adapter/flatten_json.rb - - lib/active_model/serializer/adapter/fragment_cache.rb - - lib/active_model/serializer/adapter/json.rb - - lib/active_model/serializer/adapter/json/fragment_cache.rb - - lib/active_model/serializer/adapter/json_api.rb - - lib/active_model/serializer/adapter/json_api/fragment_cache.rb - - lib/active_model/serializer/adapter/json_api/pagination_links.rb - - lib/active_model/serializer/adapter/null.rb - Lint/NestedMethodDefinition: Enabled: false Exclude: - test/action_controller/serialization_test.rb @@ -76,7 +43,44 @@ EnforcedStyle: compact Style/Documentation: Enabled: false +Style/MissingElse: + Enabled: true + EnforcedStyle: case + +Style/EmptyElse: + EnforcedStyle: empty + Style/MultilineOperationIndentation: EnforcedStyle: indented + +Style/BlockDelimiters: + Enabled: true + EnforcedStyle: line_count_based + +########## test_helper.rb sanity +Style/EndBlock: + Exclude: + - test/test_helper.rb + +Style/SpecialGlobalVars: + Exclude: + - test/test_helper.rb + +Style/GlobalVars: + Exclude: + - test/test_helper.rb + +Style/AndOr: + Exclude: + - test/test_helper.rb + - 'lib/active_model/serializer/lint.rb' + +Style/Not: + Exclude: + - test/test_helper.rb + +Style/ClassCheck: + Exclude: + - test/test_helper.rb