Skip to content

Commit b3870dc

Browse files
committed
Add a setting for "autocorrect" in Naming/InclusiveLanguage
Follow up: rubocop/rubocop#10714 In this PR, we have made the following word's suggestions - auto-correct -> autocorrect - auto_correct -> autocorrect
1 parent 426513d commit b3870dc

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)