Skip to content

Commit

Permalink
[Fixes #8688] Mark Style/GlobalStdStream as unsafe autocorrection.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcandre authored and mergify[bot] committed Sep 10, 2020
1 parent a3248af commit a60c3d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion config/default.yml
Expand Up @@ -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
Expand Down Expand Up @@ -3090,6 +3090,7 @@ Style/GlobalStdStream:
StyleGuide: '#global-stdout'
Enabled: pending
VersionAdded: '0.89'
SafeAutoCorrect: false

Style/GlobalVars:
Description: 'Do not introduce global variables.'
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_style.adoc
Expand Up @@ -3516,7 +3516,7 @@ end

| Pending
| Yes
| Yes
| Yes (Unsafe)
| 0.89
| -
|===
Expand Down

0 comments on commit a60c3d2

Please sign in to comment.