default.yml in platform-style-0.3.0 vs default.yml in platform-style-0.4.0

- old
+ new

@@ -1,21 +1,21 @@ require: - rubocop-factory_bot - rubocop-graphql - rubocop-performance + - rubocop-rake - rubocop-rails - - rubocop-restrictenv - rubocop-rspec AllCops: Exclude: - bin/* - db/schema.rb - db/data_schema.rb - vendor/bundle/**/* NewCops: enable - TargetRubyVersion: 3.1.2 + TargetRubyVersion: 3.1 # GraphQL GraphQL/ExtractInputType: Enabled: false @@ -24,10 +24,13 @@ Enabled: false GraphQL/FieldMethod: Enabled: false +GraphQL/ObjectDescription: + Enabled: false + # Layout Layout/ClassStructure: Categories: associations: @@ -130,10 +133,11 @@ AllowedPatterns: - VCR.use_cassette Enabled: true Exclude: - app/graphql/**/* + - app/types/platform_types.rb - db/migrate/* Max: 120 Layout/MultilineMethodCallIndentation: Enabled: true @@ -208,25 +212,22 @@ Naming/VariableNumber: AllowedIdentifiers: - address1 - address2 + - alpha2 + - alpha3 + - street1 + - street2 CheckSymbols: true Enabled: true EnforcedStyle: snake_case Exclude: - app/graphql/types/**/*.rb - spec/factories/**/*.rb - spec/requests/**/*.rb -# Restrict ENV - -Restrictenv/NoEnvAccess: - Exclude: - - 'config/**/*' - - spec/rails_helper.rb - # RSpec RSpec/ExampleLength: CountAsOne: - array @@ -257,11 +258,17 @@ # Style Style/Documentation: Enabled: false +RSpec/ImplicitSubject: + EnforcedStyle: single_statement_only + Style/MultilineIfModifier: Enabled: false + +Style/NegatedIf: + EnforcedStyle: postfix Style/NumericLiterals: AllowedPatterns: - \d{10,} Enabled: true