Skip to content

Commit

Permalink
Merge pull request #8595 from marcandre/struct_autocorrect
Browse files Browse the repository at this point in the history
Enable autocorrection for `Style/ClassAndModuleChildren`
  • Loading branch information
bbatsov committed Sep 1, 2020
2 parents 6d781b0 + 71c4818 commit eb04490
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 @@ -32,7 +32,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][])
* [#8583](https://github.com/rubocop-hq/rubocop/issues/8583): Fix `Style/RedundantRegexpEscape` false positive for line continuations. ([@owst][])
* [#8593](https://github.com/rubocop-hq/rubocop/issues/8593): Fix `Style/RedundantRegexpCharacterClass` false positive for interpolated multi-line expressions. ([@owst][])
* [#8624](https://github.com/rubocop-hq/rubocop/pull/8624): Fix an error with the `Style/CaseLikeIf` cop where it does not properly handle overridden equality methods with no arguments. ([@Skipants][])
Expand Down
1 change: 0 additions & 1 deletion config/default.yml
Expand Up @@ -2637,7 +2637,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 eb04490

Please sign in to comment.