Skip to content

Commit

Permalink
Enable autocorrection for Style/ClassAndModuleChildren
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre committed Aug 26, 2020
1 parent e735eb8 commit 4e530f7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -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

Expand Down
1 change: 0 additions & 1 deletion config/default.yml
Expand Up @@ -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'
#
Expand Down
4 changes: 0 additions & 4 deletions docs/modules/ROOT/pages/cops_style.adoc
Expand Up @@ -980,10 +980,6 @@ end
|===
| Name | Default value | Configurable values

| AutoCorrect
| `false`
| Boolean

| EnforcedStyle
| `nested`
| `nested`, `compact`
Expand Down

0 comments on commit 4e530f7

Please sign in to comment.