makandra-rubocop 15.0.0 → 16.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -6
- data/Gemfile +3 -0
- data/Gemfile.lock +6 -2
- data/README.md +12 -0
- data/config/default.yml +1 -1
- data/config/ext/rspec_rails.yml +91 -0
- data/lib/makandra_rubocop/version.rb +1 -1
- data/makandra-rubocop.gemspec +1 -2
- metadata +14 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 388a2d317c832f6716236d2063043aa899d8eb21b07abb8f9d88debfc144f932
|
4
|
+
data.tar.gz: e7a1092758e05a274f4fd5c537bc3217512dd64316d74f3e53104635bd1dcb6e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a89a4dd3036c8394ab7b91e607e609d71da93677a92ed4b8fbaf4c1adc27e2c820656e7e6f525975e9023bc1629ec676d743f3b32210831063dba46261699690
|
7
|
+
data.tar.gz: b6b4554837bc5aac15720abb86e3b924dd569a55122b33fae83da916c2a9168f084cd0588d5490320bd7b76c3079d14aa40c71b948fdc9b8d55cd419d4ecfcf9
|
data/CHANGELOG.md
CHANGED
@@ -5,10 +5,21 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
5
5
|
## Unreleased
|
6
6
|
|
7
7
|
### Breaking changes
|
8
|
-
-
|
9
8
|
|
10
9
|
### Compatible changes
|
11
|
-
|
10
|
+
|
11
|
+
|
12
|
+
## 16.0.0 - 2025-02-25
|
13
|
+
|
14
|
+
### Breaking changes
|
15
|
+
- Add `rubocop-rspec_rails`
|
16
|
+
|
17
|
+
|
18
|
+
## 15.1.0 - 2025-02-14
|
19
|
+
|
20
|
+
### Compatible changes
|
21
|
+
- Style/SafeNavigation: set MaxChainLength to 1 (#55)
|
22
|
+
|
12
23
|
|
13
24
|
## 15.0.0 - 2025-01-20
|
14
25
|
|
@@ -19,9 +30,8 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
19
30
|
### Compatible changes
|
20
31
|
- Add Support for Ruby 3.4
|
21
32
|
|
22
|
-
## 14.0.1 - 2024-09-12
|
23
33
|
|
24
|
-
|
34
|
+
## 14.0.1 - 2024-09-12
|
25
35
|
|
26
36
|
### Compatible changes
|
27
37
|
|
@@ -42,8 +52,6 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
42
52
|
|
43
53
|
## 13.0.0 - 2024-05-27
|
44
54
|
|
45
|
-
### Compatible changes
|
46
|
-
|
47
55
|
### Breaking changes
|
48
56
|
|
49
57
|
- Upgrade to `rubocop-rspec` 2.25.0 (was 2.13.2)
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
makandra-rubocop (
|
4
|
+
makandra-rubocop (16.0.0)
|
5
5
|
rubocop (~> 1.70.0)
|
6
6
|
rubocop-capybara (~> 2.20.0)
|
7
7
|
rubocop-factory_bot (~> 2.25.1)
|
8
8
|
rubocop-rails (~> 2.23.1)
|
9
9
|
rubocop-rspec (~> 3.0.3)
|
10
|
+
rubocop-rspec_rails (~> 2.30.0)
|
10
11
|
|
11
12
|
GEM
|
12
13
|
remote: https://rubygems.org/
|
@@ -70,6 +71,9 @@ GEM
|
|
70
71
|
rubocop-ast (>= 1.30.0, < 2.0)
|
71
72
|
rubocop-rspec (3.0.5)
|
72
73
|
rubocop (~> 1.61)
|
74
|
+
rubocop-rspec_rails (2.30.0)
|
75
|
+
rubocop (~> 1.61)
|
76
|
+
rubocop-rspec (~> 3, >= 3.0.1)
|
73
77
|
ruby-progressbar (1.13.0)
|
74
78
|
securerandom (0.3.2)
|
75
79
|
tzinfo (2.0.6)
|
@@ -87,4 +91,4 @@ DEPENDENCIES
|
|
87
91
|
rake (~> 12.3)
|
88
92
|
|
89
93
|
BUNDLED WITH
|
90
|
-
2.
|
94
|
+
2.5.14
|
data/README.md
CHANGED
@@ -54,6 +54,18 @@ inherit_gem:
|
|
54
54
|
- config/ext/rspec.yml
|
55
55
|
```
|
56
56
|
|
57
|
+
**For RSpec Rails**
|
58
|
+
|
59
|
+
Since `rubocop-rspec_rails` requires `rubocop-rspec`, the config for both gems should be loaded.
|
60
|
+
|
61
|
+
```yaml
|
62
|
+
inherit_gem:
|
63
|
+
makandra-rubocop:
|
64
|
+
- config/default.yml
|
65
|
+
- config/ext/rspec.yml
|
66
|
+
- config/ext/rspec_rails.yml
|
67
|
+
```
|
68
|
+
|
57
69
|
**For Capybara**
|
58
70
|
|
59
71
|
```yaml
|
data/config/default.yml
CHANGED
@@ -5317,7 +5317,7 @@ Style/SafeNavigation:
|
|
5317
5317
|
- try!
|
5318
5318
|
SafeAutoCorrect: false
|
5319
5319
|
# Maximum length of method chains for register an offense.
|
5320
|
-
MaxChainLength:
|
5320
|
+
MaxChainLength: 1
|
5321
5321
|
|
5322
5322
|
Style/SafeNavigationChainLength:
|
5323
5323
|
Description: 'Enforces safe navigation chains length to not exceed the configured maximum.'
|
@@ -0,0 +1,91 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rspec_rails
|
3
|
+
|
4
|
+
inherit_mode:
|
5
|
+
merge:
|
6
|
+
- Exclude
|
7
|
+
|
8
|
+
RSpecRails:
|
9
|
+
Enabled: true
|
10
|
+
DocumentationBaseURL: https://docs.rubocop.org/rubocop-rspec_rails
|
11
|
+
Include:
|
12
|
+
- "**/*_spec.rb"
|
13
|
+
- "**/spec/**/*"
|
14
|
+
|
15
|
+
RSpecRails/AvoidSetupHook:
|
16
|
+
Description: Checks that tests use RSpec `before` hook over Rails `setup` method.
|
17
|
+
Enabled: pending
|
18
|
+
VersionAdded: '2.4'
|
19
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/AvoidSetupHook
|
20
|
+
|
21
|
+
RSpecRails/HaveHttpStatus:
|
22
|
+
Description: Checks that tests use `have_http_status` instead of equality matchers.
|
23
|
+
Enabled: pending
|
24
|
+
ResponseMethods:
|
25
|
+
- response
|
26
|
+
- last_response
|
27
|
+
SafeAutoCorrect: false
|
28
|
+
VersionAdded: '2.12'
|
29
|
+
VersionChanged: '2.27'
|
30
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/HaveHttpStatus
|
31
|
+
|
32
|
+
RSpecRails/HttpStatus:
|
33
|
+
Description: Enforces use of symbolic or numeric value to describe HTTP status.
|
34
|
+
Enabled: true
|
35
|
+
EnforcedStyle: symbolic
|
36
|
+
SupportedStyles:
|
37
|
+
- numeric
|
38
|
+
- symbolic
|
39
|
+
- be_status
|
40
|
+
VersionAdded: '1.23'
|
41
|
+
VersionChanged: '2.20'
|
42
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/HttpStatus
|
43
|
+
|
44
|
+
RSpecRails/InferredSpecType:
|
45
|
+
Description: Identifies redundant spec type.
|
46
|
+
Enabled: pending
|
47
|
+
Safe: false
|
48
|
+
VersionAdded: '2.14'
|
49
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/InferredSpecType
|
50
|
+
Inferences:
|
51
|
+
channels: channel
|
52
|
+
controllers: controller
|
53
|
+
features: feature
|
54
|
+
generator: generator
|
55
|
+
helpers: helper
|
56
|
+
jobs: job
|
57
|
+
mailboxes: mailbox
|
58
|
+
mailers: mailer
|
59
|
+
models: model
|
60
|
+
requests: request
|
61
|
+
integration: request
|
62
|
+
api: request
|
63
|
+
routing: routing
|
64
|
+
system: system
|
65
|
+
views: view
|
66
|
+
|
67
|
+
RSpecRails/MinitestAssertions:
|
68
|
+
Description: Check if using Minitest-like matchers.
|
69
|
+
Enabled: pending
|
70
|
+
VersionAdded: '2.17'
|
71
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/MinitestAssertions
|
72
|
+
|
73
|
+
RSpecRails/NegationBeValid:
|
74
|
+
Description: Enforces use of `be_invalid` or `not_to` for negated be_valid.
|
75
|
+
AutoCorrect: contextual
|
76
|
+
Safe: false
|
77
|
+
EnforcedStyle: be_invalid
|
78
|
+
SupportedStyles:
|
79
|
+
- not_to
|
80
|
+
- be_invalid
|
81
|
+
Enabled: pending
|
82
|
+
VersionAdded: '2.23'
|
83
|
+
VersionChanged: '2.29'
|
84
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/NegationBeValid
|
85
|
+
|
86
|
+
RSpecRails/TravelAround:
|
87
|
+
Description: Prefer to travel in `before` rather than `around`.
|
88
|
+
Enabled: false
|
89
|
+
Safe: false
|
90
|
+
VersionAdded: '2.19'
|
91
|
+
Reference: https://www.rubydoc.info/gems/rubocop-rspec_rails/RuboCop/Cop/RSpecRails/TravelAround
|
data/makandra-rubocop.gemspec
CHANGED
@@ -27,10 +27,9 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency 'rubocop', '~> 1.70.0'
|
28
28
|
spec.add_dependency 'rubocop-rails', '~> 2.23.1'
|
29
29
|
spec.add_dependency 'rubocop-rspec', '~> 3.0.3'
|
30
|
+
spec.add_dependency 'rubocop-rspec_rails', '~> 2.30.0'
|
30
31
|
spec.add_dependency 'rubocop-capybara', '~> 2.20.0'
|
31
32
|
spec.add_dependency 'rubocop-factory_bot', '~> 2.25.1'
|
32
33
|
|
33
|
-
spec.add_development_dependency 'bundler', '~> 2.0'
|
34
|
-
spec.add_development_dependency 'rake', '~> 12.3'
|
35
34
|
spec.metadata['rubygems_mfa_required'] = 'true'
|
36
35
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: makandra-rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 16.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arne Hartherz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2025-
|
12
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -54,61 +54,47 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 3.0.3
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
|
-
name: rubocop-
|
57
|
+
name: rubocop-rspec_rails
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: 2.
|
62
|
+
version: 2.30.0
|
63
63
|
type: :runtime
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 2.
|
69
|
+
version: 2.30.0
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
|
-
name: rubocop-
|
71
|
+
name: rubocop-capybara
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 2.
|
76
|
+
version: 2.20.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 2.
|
84
|
-
- !ruby/object:Gem::Dependency
|
85
|
-
name: bundler
|
86
|
-
requirement: !ruby/object:Gem::Requirement
|
87
|
-
requirements:
|
88
|
-
- - "~>"
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: '2.0'
|
91
|
-
type: :development
|
92
|
-
prerelease: false
|
93
|
-
version_requirements: !ruby/object:Gem::Requirement
|
94
|
-
requirements:
|
95
|
-
- - "~>"
|
96
|
-
- !ruby/object:Gem::Version
|
97
|
-
version: '2.0'
|
83
|
+
version: 2.20.0
|
98
84
|
- !ruby/object:Gem::Dependency
|
99
|
-
name:
|
85
|
+
name: rubocop-factory_bot
|
100
86
|
requirement: !ruby/object:Gem::Requirement
|
101
87
|
requirements:
|
102
88
|
- - "~>"
|
103
89
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
105
|
-
type: :
|
90
|
+
version: 2.25.1
|
91
|
+
type: :runtime
|
106
92
|
prerelease: false
|
107
93
|
version_requirements: !ruby/object:Gem::Requirement
|
108
94
|
requirements:
|
109
95
|
- - "~>"
|
110
96
|
- !ruby/object:Gem::Version
|
111
|
-
version:
|
97
|
+
version: 2.25.1
|
112
98
|
description: A relaxed set of default Rubocop settings to use across makandra projects.
|
113
99
|
email:
|
114
100
|
- arne.hartherz@makandra.de
|
@@ -134,6 +120,7 @@ files:
|
|
134
120
|
- config/ext/factory_bot.yml
|
135
121
|
- config/ext/rails.yml
|
136
122
|
- config/ext/rspec.yml
|
123
|
+
- config/ext/rspec_rails.yml
|
137
124
|
- lib/makandra_rubocop.rb
|
138
125
|
- lib/makandra_rubocop/support/rubocop_spec.rb
|
139
126
|
- lib/makandra_rubocop/version.rb
|
@@ -158,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
145
|
- !ruby/object:Gem::Version
|
159
146
|
version: '0'
|
160
147
|
requirements: []
|
161
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.2.33
|
162
149
|
signing_key:
|
163
150
|
specification_version: 4
|
164
151
|
summary: makandra's default Rubocop configuration
|