Skip to content

Commit 11d9a06

Browse files
authored
Merge pull request #1298 from ydah/add_inclusive_language_for_autocorrect
Add a setting for "autocorrect" in `Naming/InclusiveLanguage`
2 parents 426513d + b3870dc commit 11d9a06

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

.rubocop.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ Naming/InclusiveLanguage:
6060
Enabled: true
6161
CheckStrings: true
6262
FlaggedTerms:
63+
auto-correct:
64+
Suggestions:
65+
- autocorrect
66+
auto_correct:
67+
Suggestions:
68+
- autocorrect
6369
behaviour:
6470
Suggestions:
6571
- behavior

docs/modules/ROOT/pages/cops_rspec_factorybot.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Use shorthands from `FactoryBot::Syntax::Methods` in your specs.
174174

175175
=== Safety
176176

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

lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module FactoryBot
77
# Use shorthands from `FactoryBot::Syntax::Methods` in your specs.
88
#
99
# @safety
10-
# The auto-correction is marked as unsafe because the cop
10+
# The autocorrection is marked as unsafe because the cop
1111
# cannot verify whether you already include
1212
# `FactoryBot::Syntax::Methods` in your test suite.
1313
#

0 commit comments

Comments
 (0)