From 4e530f7bf6b8959bc46ce9461a537f6691ebc8be Mon Sep 17 00:00:00 2001 From: Marc-Andre Lafortune Date: Wed, 26 Aug 2020 16:41:22 -0400 Subject: [PATCH] Enable autocorrection for Style/ClassAndModuleChildren --- CHANGELOG.md | 2 +- config/default.yml | 1 - docs/modules/ROOT/pages/cops_style.adoc | 4 ---- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e3a906b32a..ac5a043b8bc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,7 +29,7 @@ * [#8158](https://github.com/rubocop-hq/rubocop/issues/8158): Fix `Style/MultilineWhenThen` cop to correctly handle cases with multiline body. ([@dsavochkin][]) * [#7705](https://github.com/rubocop-hq/rubocop/issues/7705): Fix `Style/OneLineConditional` cop to handle if/then/elsif/then/else/end cases. Add `AlwaysCorrectToMultiline` config option to this cop to always convert offenses to the multi-line form (false by default). ([@Lykos][], [@dsavochkin][]) * [#8590](https://github.com/rubocop-hq/rubocop/issues/8590): Fix an error when auto-correcting encoding mismatch file. ([@koic][]) -* [#8321](https://github.com/rubocop-hq/rubocop/issues/8321): Enable auto-correction for `Layout/{Def}EndAlignment`, `Lint/EmptyEnsure`. ([@marcandre][]) +* [#8321](https://github.com/rubocop-hq/rubocop/issues/8321): Enable auto-correction for `Layout/{Def}EndAlignment`, `Lint/EmptyEnsure`, `Style/ClassAndModuleChildren`. ([@marcandre][]) ### Changes diff --git a/config/default.yml b/config/default.yml index caf08e514fe..e6b6b1f733a 100644 --- a/config/default.yml +++ b/config/default.yml @@ -2629,7 +2629,6 @@ Style/ClassAndModuleChildren: # have the knowledge to perform either operation safely and thus requires # manual oversight. SafeAutoCorrect: false - AutoCorrect: false Enabled: true VersionAdded: '0.19' # diff --git a/docs/modules/ROOT/pages/cops_style.adoc b/docs/modules/ROOT/pages/cops_style.adoc index c2f3db78c99..cc700e28f7a 100644 --- a/docs/modules/ROOT/pages/cops_style.adoc +++ b/docs/modules/ROOT/pages/cops_style.adoc @@ -980,10 +980,6 @@ end |=== | Name | Default value | Configurable values -| AutoCorrect -| `false` -| Boolean - | EnforcedStyle | `nested` | `nested`, `compact`