Skip to content

Commit a2b385e

Browse files
authored
Merge pull request #1316 from r7kamura/feature/empty-example-group
Add autocorrect support for `RSpec/EmptyExampleGroup`
2 parents 3d2534c + 49e8e8c commit a2b385e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Master (Unreleased)
44

55
* Add new `AllowConsecutiveOneLiners` (default true) option for `Rspec/EmptyLineAfterHook` cop. ([@ngouy][])
6+
* Add autocorrect support for `RSpec/EmptyExampleGroup`. ([@r7kamura][])
67

78
## 2.12.1 (2022-07-03)
89

config/default.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,8 +279,9 @@ RSpec/Dialect:
279279
RSpec/EmptyExampleGroup:
280280
Description: Checks if an example group does not include any tests.
281281
Enabled: true
282+
SafeAutoCorrect: false
282283
VersionAdded: '1.7'
283-
VersionChanged: '2.0'
284+
VersionChanged: '2.13'
284285
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyExampleGroup
285286

286287
RSpec/EmptyHook:

0 commit comments

Comments
 (0)