Skip to content

Commit 22d5288

Browse files
committed
fix rubocpo 2
1 parent 0d34290 commit 22d5288

2 files changed

Lines changed: 22 additions & 1 deletion

File tree

.rubocop.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
AllCops:
22
TargetRubyVersion: 3.3
3+
NewCops: enable
34
SuggestExtensions: false
45
Exclude:
56
- 'vendor/**/*'
@@ -9,12 +10,18 @@ require:
910
- rubocop-rake
1011
- rubocop-rspec
1112

13+
# Disable problematic cops that cause errors
14+
Capybara/RSpec/PredicateMatcher:
15+
Enabled: false
16+
17+
# Layout rules
1218
Layout/LineLength:
1319
Max: 120
1420
Exclude:
1521
- 'gasfree_sdk.gemspec'
1622
- 'examples/**/*'
1723

24+
# Metrics rules
1825
Metrics/BlockLength:
1926
Exclude:
2027
- 'spec/**/*'
@@ -30,20 +37,34 @@ Metrics/CyclomaticComplexity:
3037
Exclude:
3138
- 'spec/**/*'
3239

40+
# Documentation rules
3341
Style/Documentation:
3442
Exclude:
3543
- 'spec/**/*'
3644
- 'examples/**/*'
3745
- 'lib/gasfree_sdk/errors.rb'
3846

47+
# RSpec rules
3948
RSpec/ExampleLength:
4049
Max: 30
4150

4251
RSpec/MultipleExpectations:
4352
Max: 5
4453

54+
# String literal rules
4555
Style/StringLiterals:
4656
EnforcedStyle: double_quotes
4757

4858
Style/StringLiteralsInInterpolation:
4959
EnforcedStyle: double_quotes
60+
61+
# Disable some overly strict cops for this project
62+
Style/FrozenStringLiteralComment:
63+
Enabled: true
64+
65+
# Gemspec rules - be more lenient for development gems
66+
Gemspec/RequireMFA:
67+
Enabled: false
68+
69+
Gemspec/DevelopmentDependencies:
70+
Enabled: false

spec/gasfree_sdk_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
RSpec.describe GasfreeSdk do
44
it "has a version number" do
5-
expect(GasfreeSdk::VERSION).not_to be nil
5+
expect(GasfreeSdk::VERSION).not_to be_nil
66
end
77

88
it "can be configured" do

0 commit comments

Comments
 (0)