Skip to content

Commit b5e2b17

Browse files
committed
wip
1 parent e5aa9ce commit b5e2b17

File tree

4 files changed

+18
-12
lines changed

4 files changed

+18
-12
lines changed

rubocop/.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ inherit_gem:
22
rubocop-config-umbrellio: lib/rubocop.yml
33

44
AllCops:
5-
TargetRubyVersion: 2.5
5+
TargetRubyVersion: 3.0

rubocop/Gemfile.lock

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ PATH
33
specs:
44
rubocop-config-umbrellio (1.66.0)
55
rubocop (~> 1.66.0)
6+
rubocop-factory_bot
67
rubocop-performance (~> 1.22.0)
78
rubocop-rails (~> 2.26.0)
89
rubocop-rake (~> 0.6.0)
@@ -56,6 +57,8 @@ GEM
5657
unicode-display_width (>= 2.4.0, < 3.0)
5758
rubocop-ast (1.32.3)
5859
parser (>= 3.3.1.0)
60+
rubocop-factory_bot (2.26.1)
61+
rubocop (~> 1.61)
5962
rubocop-performance (1.22.0)
6063
rubocop (>= 1.48.1, < 2.0)
6164
rubocop-ast (>= 1.31.1, < 2.0)

rubocop/lib/rubocop.rspec.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1-
require: rubocop-rspec
1+
require:
2+
- rubocop-rspec
3+
- rubocop-factory_bot
24

35
# Capybara
46

5-
Capybara/CurrentPathExpectation:
6-
Enabled: true
7+
# Capybara/CurrentPathExpectation:
8+
# Enabled: true
79

8-
RSpec/Capybara/FeatureMethods:
9-
Enabled: false
10+
# RSpec/Capybara/FeatureMethods:
11+
# Enabled: false
1012

1113
# RSpec
1214

@@ -42,13 +44,13 @@ RSpec/ExpectInHook:
4244
# try not to use expect in before / after / around blocks anyway
4345
Enabled: false
4446

45-
RSpec/FactoryBot:
46-
Include:
47-
- spec/factories.rb
48-
- spec/factories/**/*.rb
49-
- features/support/factories/**/*.rb
47+
# RSpec/FactoryBot:
48+
# Include:
49+
# - spec/factories.rb
50+
# - spec/factories/**/*.rb
51+
# - features/support/factories/**/*.rb
5052

51-
RSpec/FilePath:
53+
RSpec/SpecFilePathFormat:
5254
Enabled: false
5355

5456
RSpec/LeadingSubject:

rubocop/rubocop.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Gem::Specification.new do |spec|
2222
spec.files = Dir["lib/rubocop.*.yml"] << "lib/rubocop.yml"
2323

2424
spec.add_dependency "rubocop", "~> #{rubocop_version}"
25+
spec.add_dependency "rubocop-factory_bot"
2526
spec.add_dependency "rubocop-performance", "~> 1.22.0"
2627
spec.add_dependency "rubocop-rails", "~> 2.26.0"
2728
spec.add_dependency "rubocop-rake", "~> 0.6.0"

0 commit comments

Comments
 (0)