diff --git a/CHANGELOG.md b/CHANGELOG.md index 77e7e795640..4415212083f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ * [#8604](https://github.com/rubocop-hq/rubocop/issues/8604): Fix a false positive for `Bundler/DuplicatedGem` when gem is duplciated in condition. ([@tejasbubane][]) * [#8671](https://github.com/rubocop-hq/rubocop/issues/8671): Fix an error for `Style/ExplicitBlockArgument` when using safe navigation method call. ([@koic][]) * [#8682](https://github.com/rubocop-hq/rubocop/pull/8682): Fix a positive for `Style/HashTransformKeys` and `Style/HashTransformValues` when the `each_with_object` hash is used in the transformed key or value. ([@eugeneius][]) +* [#8688](https://github.com/rubocop-hq/rubocop/issues/8688): Mark `Style/GlobalStdStream` as unsafe autocorrection. ([@marcandre][]) ### Changes diff --git a/config/default.yml b/config/default.yml index 6c6e77c158f..949168569b2 100644 --- a/config/default.yml +++ b/config/default.yml @@ -117,7 +117,7 @@ AllCops: # CacheRootDirectory is ~ (nil), which it is by default, the root will be # taken from the environment variable `$XDG_CACHE_HOME` if it is set, or if # `$XDG_CACHE_HOME` is not set, it will be `$HOME/.cache/`. - # The CacheRootDirectory can be overwritten by passing the `--cache-root` command + # The CacheRootDirectory can be overwritten by passing the `--cache-root` command # line option or by setting `$RUBOCOP_CACHE_ROOT` environment variable. CacheRootDirectory: ~ # It is possible for a malicious user to know the location of RuboCop's cache @@ -3090,6 +3090,7 @@ Style/GlobalStdStream: StyleGuide: '#global-stdout' Enabled: pending VersionAdded: '0.89' + SafeAutoCorrect: false Style/GlobalVars: Description: 'Do not introduce global variables.' diff --git a/docs/modules/ROOT/pages/cops_style.adoc b/docs/modules/ROOT/pages/cops_style.adoc index f400caa82e4..8a1a4ffbee1 100644 --- a/docs/modules/ROOT/pages/cops_style.adoc +++ b/docs/modules/ROOT/pages/cops_style.adoc @@ -3516,7 +3516,7 @@ end | Pending | Yes -| Yes +| Yes (Unsafe) | 0.89 | - |===