Skip to content

Commit

Permalink
Enable Naming/InclusiveLanguage with CheckStrings: true
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed May 9, 2022
1 parent c657b8c commit c16d9f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Expand Up @@ -28,6 +28,8 @@ Naming/PredicateName:
- def_node_search

Naming/InclusiveLanguage:
Enabled: true
CheckStrings: true
FlaggedTerms:
behaviour:
Suggestions:
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_minitest.adoc
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/minitest/duplicate_test_run.rb
Expand Up @@ -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
Expand Down

0 comments on commit c16d9f1

Please sign in to comment.