diff --git a/Gemfile.lock b/Gemfile.lock index 344e1c04..5c32190f 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -27,7 +27,7 @@ GEM rake (13.0.6) regexp_parser (2.5.0) rexml (3.2.5) - rubocop (1.35.1) + rubocop (1.36.0) json (~> 2.3) parallel (~> 1.10) parser (>= 3.1.2.1) diff --git a/rubocop.yml b/rubocop.yml index 6582eab6..04b4d24c 100644 --- a/rubocop.yml +++ b/rubocop.yml @@ -390,6 +390,7 @@ Style/BisectedAttrAccessor: Style/CaseEquality: AllowOnConstant: true + AllowOnSelfClass: true Style/CaseLikeIf: Enabled: false diff --git a/test/fixtures/full_config.yml b/test/fixtures/full_config.yml index 23c0acc6..f679769e 100644 --- a/test/fixtures/full_config.yml +++ b/test/fixtures/full_config.yml @@ -2096,6 +2096,7 @@ Naming/MethodParameterName: MinNameLength: 3 AllowNamesEndingInNumbers: true AllowedNames: + - as - at - by - db @@ -2218,6 +2219,7 @@ Style/AccessModifierDeclarations: - inline - group AllowModifiersOnSymbols: true + SafeAutoCorrect: false Style/AccessorGrouping: Description: Checks for grouping of accessors in `class` and `module` bodies. Enabled: false @@ -2355,6 +2357,7 @@ Style/CaseEquality: VersionAdded: '0.9' VersionChanged: '0.89' AllowOnConstant: true + AllowOnSelfClass: true Style/CaseLikeIf: Description: Identifies places where `if-elsif` constructions can be replaced with `case-when`.