Skip to content

Commit

Permalink
Merge pull request #1298 from ydah/add_inclusive_language_for_autocor…
Browse files Browse the repository at this point in the history
…rect

Add a setting for "autocorrect" in `Naming/InclusiveLanguage`
  • Loading branch information
pirj authored Jun 15, 2022
2 parents 426513d + b3870dc commit 11d9a06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ Naming/InclusiveLanguage:
Enabled: true
CheckStrings: true
FlaggedTerms:
auto-correct:
Suggestions:
- autocorrect
auto_correct:
Suggestions:
- autocorrect
behaviour:
Suggestions:
- behavior
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/cops_rspec_factorybot.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ Use shorthands from `FactoryBot::Syntax::Methods` in your specs.

=== Safety

The auto-correction is marked as unsafe because the cop
The autocorrection is marked as unsafe because the cop
cannot verify whether you already include
`FactoryBot::Syntax::Methods` in your test suite.

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module FactoryBot
# Use shorthands from `FactoryBot::Syntax::Methods` in your specs.
#
# @safety
# The auto-correction is marked as unsafe because the cop
# The autocorrection is marked as unsafe because the cop
# cannot verify whether you already include
# `FactoryBot::Syntax::Methods` in your test suite.
#
Expand Down

0 comments on commit 11d9a06

Please sign in to comment.