Skip to content

Commit 9112c47

Browse files
committed
Chore: Upgrade Rubocop
1 parent 93d0d3e commit 9112c47

File tree

16 files changed

+567
-117
lines changed

16 files changed

+567
-117
lines changed

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22

33
inherit_from:
44
- '.rubocop_core.yml'
5+
- '.rubocop_capybara.yml'
6+
- '.rubocop_factory_bot.yml'
57
- '.rubocop_performance.yml'
68
- '.rubocop_rspec.yml'
79
- '.rubocop_local.yml'
10+
- '.rubocop_thread_safety.yml'
811

912
# Put your project-specific Rubocop configuration in .rubocop_local.yml

.rubocop_capybara.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
---
2+
3+
# Last updated to 2.22.1
4+
5+
plugins:
6+
- 'rubocop-capybara'
7+
8+
Capybara/AmbiguousClick:
9+
Enabled: true
10+
11+
Capybara/ClickLinkOrButtonStyle:
12+
Enabled: true
13+
EnforcedStyle: 'link_or_button'
14+
15+
Capybara/CurrentPathExpectation:
16+
Enabled: true
17+
18+
Capybara/FindAllFirst:
19+
Enabled: true
20+
21+
Capybara/MatchStyle:
22+
Enabled: true
23+
24+
Capybara/NegationMatcher:
25+
Enabled: true
26+
EnforcedStyle: 'have_no'
27+
28+
Capybara/NegationMatcherAfterVisit:
29+
Enabled: true
30+
31+
Capybara/RedundantWithinFind:
32+
Enabled: true
33+
34+
Capybara/RSpec/HaveSelector:
35+
Enabled: true
36+
DefaultSelector: 'css'
37+
38+
Capybara/RSpec/PredicateMatcher:
39+
Enabled: true
40+
AllowedExplicitMatchers: []
41+
EnforcedStyle: 'inflected'
42+
43+
Capybara/SpecificActions:
44+
Enabled: true
45+
46+
Capybara/SpecificFinders:
47+
Enabled: true
48+
49+
Capybara/SpecificMatcher:
50+
Enabled: true
51+
52+
Capybara/VisibilityMatcher:
53+
Enabled: true

0 commit comments

Comments
 (0)