From c16d9f11ff64f5a8ecd9d8a62eb6f462eb825100 Mon Sep 17 00:00:00 2001 From: Koichi ITO Date: Mon, 9 May 2022 20:52:55 +0900 Subject: [PATCH] Enable `Naming/InclusiveLanguage` with `CheckStrings: true` https://github.com/rubocop/rubocop/pull/10611 --- .rubocop.yml | 2 ++ docs/modules/ROOT/pages/cops_minitest.adoc | 2 +- lib/rubocop/cop/minitest/duplicate_test_run.rb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 995c293e..9370a53c 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -28,6 +28,8 @@ Naming/PredicateName: - def_node_search Naming/InclusiveLanguage: + Enabled: true + CheckStrings: true FlaggedTerms: behaviour: Suggestions: diff --git a/docs/modules/ROOT/pages/cops_minitest.adoc b/docs/modules/ROOT/pages/cops_minitest.adoc index 4d12242c..923a3911 100644 --- a/docs/modules/ROOT/pages/cops_minitest.adoc +++ b/docs/modules/ROOT/pages/cops_minitest.adoc @@ -560,7 +560,7 @@ If a Minitest class inherits from another class, it will also inherit its methods causing Minitest to run the parent's tests methods twice. This cop detects when there are two tests classes, one inherits from the other, and both have tests methods. -This cop will add an offence to the Child class in such a case. +This cop will add an offense to the Child class in such a case. === Examples diff --git a/lib/rubocop/cop/minitest/duplicate_test_run.rb b/lib/rubocop/cop/minitest/duplicate_test_run.rb index 645f9578..7e8cfaf0 100644 --- a/lib/rubocop/cop/minitest/duplicate_test_run.rb +++ b/lib/rubocop/cop/minitest/duplicate_test_run.rb @@ -7,7 +7,7 @@ module Minitest # it will also inherit its methods causing Minitest to run the parent's tests methods twice. # # This cop detects when there are two tests classes, one inherits from the other, and both have tests methods. - # This cop will add an offence to the Child class in such a case. + # This cop will add an offense to the Child class in such a case. # # @example # # bad