makandra-rubocop 15.1.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 +12 -1
- data/Gemfile.lock +6 -2
- data/README.md +12 -0
- data/config/ext/rspec_rails.yml +91 -0
- data/lib/makandra_rubocop/version.rb +1 -1
- data/makandra-rubocop.gemspec +1 -0
- metadata +18 -3
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,11 +5,22 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
5
5
|
## Unreleased
|
6
6
|
|
7
7
|
### Breaking changes
|
8
|
-
|
8
|
+
|
9
|
+
### Compatible changes
|
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
|
9
19
|
|
10
20
|
### Compatible changes
|
11
21
|
- Style/SafeNavigation: set MaxChainLength to 1 (#55)
|
12
22
|
|
23
|
+
|
13
24
|
## 15.0.0 - 2025-01-20
|
14
25
|
|
15
26
|
### Breaking changes
|
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
|
@@ -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,6 +27,7 @@ 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
|
|
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-02-
|
12
|
+
date: 2025-02-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubocop
|
@@ -53,6 +53,20 @@ dependencies:
|
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 3.0.3
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rubocop-rspec_rails
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 2.30.0
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 2.30.0
|
56
70
|
- !ruby/object:Gem::Dependency
|
57
71
|
name: rubocop-capybara
|
58
72
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,6 +120,7 @@ files:
|
|
106
120
|
- config/ext/factory_bot.yml
|
107
121
|
- config/ext/rails.yml
|
108
122
|
- config/ext/rspec.yml
|
123
|
+
- config/ext/rspec_rails.yml
|
109
124
|
- lib/makandra_rubocop.rb
|
110
125
|
- lib/makandra_rubocop/support/rubocop_spec.rb
|
111
126
|
- lib/makandra_rubocop/version.rb
|
@@ -130,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
145
|
- !ruby/object:Gem::Version
|
131
146
|
version: '0'
|
132
147
|
requirements: []
|
133
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.2.33
|
134
149
|
signing_key:
|
135
150
|
specification_version: 4
|
136
151
|
summary: makandra's default Rubocop configuration
|