From d25c72121541c58b6e38cc0e172e42ae973ba02b Mon Sep 17 00:00:00 2001 From: Daniel Vandersluis Date: Wed, 15 Sep 2021 15:53:01 -0400 Subject: [PATCH] Update `Lint/BooleanSymbol` to be `SafeAutoCorrect: false` rather than `Safe: false`. Although the correction is unsafe, the cop itself will not find false positives. --- changelog/change_lintbooleansymbol_should_be_marked_as.md | 1 + config/default.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 changelog/change_lintbooleansymbol_should_be_marked_as.md diff --git a/changelog/change_lintbooleansymbol_should_be_marked_as.md b/changelog/change_lintbooleansymbol_should_be_marked_as.md new file mode 100644 index 00000000000..0501af6189f --- /dev/null +++ b/changelog/change_lintbooleansymbol_should_be_marked_as.md @@ -0,0 +1 @@ +* [#10088](https://github.com/rubocop/rubocop/pull/10088): Update `Lint/BooleanSymbol` to be `SafeAutoCorrect: false` rather than `Safe: false`. ([@dvandersluis][]) diff --git a/config/default.yml b/config/default.yml index 5f7b357ce2a..27cd9992535 100644 --- a/config/default.yml +++ b/config/default.yml @@ -1491,9 +1491,9 @@ Lint/BinaryOperatorWithIdenticalOperands: Lint/BooleanSymbol: Description: 'Check for `:true` and `:false` symbols.' Enabled: true - Safe: false + SafeAutoCorrect: false VersionAdded: '0.50' - VersionChanged: '0.83' + VersionChanged: '<>' Lint/CircularArgumentReference: Description: "Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument."