From 7ff3a62707c7fac31ffdc2ca57d5e262f8959f58 Mon Sep 17 00:00:00 2001 From: Earlopain <14981592+Earlopain@users.noreply.github.com> Date: Sun, 7 Apr 2024 17:18:54 +0200 Subject: [PATCH] Make `UselssAssertion` autocorrect `contextual` --- changelog/change_make_useless_assertion_as_contextual.md | 1 + config/default.yml | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog/change_make_useless_assertion_as_contextual.md diff --git a/changelog/change_make_useless_assertion_as_contextual.md b/changelog/change_make_useless_assertion_as_contextual.md new file mode 100644 index 00000000..f7587479 --- /dev/null +++ b/changelog/change_make_useless_assertion_as_contextual.md @@ -0,0 +1 @@ +* [#308](https://github.com/rubocop/rubocop-minitest/pull/308): Make `UselssAssertion` autocorrect `contextual`. ([@earlopain][]) diff --git a/config/default.yml b/config/default.yml index c66923ed..0fd927c3 100644 --- a/config/default.yml +++ b/config/default.yml @@ -349,3 +349,4 @@ Minitest/UselessAssertion: Description: 'Detects useless assertions (assertions that either always pass or always fail).' Enabled: pending VersionAdded: '0.26' + AutoCorrect: contextual