armitage-rubocop 1.89.0.0 → 1.91.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/Gemfile.lock +94 -48
- data/README.md +7 -0
- data/armitage-rubocop.gemspec +10 -10
- data/lib/common/layout.yml +1 -0
- data/lib/common/lint.yml +12 -0
- data/lib/common/style.yml +6 -0
- data/lib/common/thread_safety.yml +45 -5
- data/lib/rbs/inline_lint.yml +23 -0
- data/lib/rbs/inline_style.yml +29 -0
- data/lib/rbs/layout.yml +1 -0
- data/lib/rubocop.rbs.yml +2 -0
- metadata +28 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5365bf1032f75b116977e387722f318e3fc6c62f2b2210bc73b9e32c6111ad28
|
|
4
|
+
data.tar.gz: e3bc871d43905090376b64133f293e38bf412af00a000607eea8a80965129f99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 849621ac61cbaa3c8da4011dedf7f32529b15d726d51126379ec238c5b761a9009f755a9442f186c8fe481f748b216064dd9bbb42ac515737faf6536d44a5a66
|
|
7
|
+
data.tar.gz: 52817140cfec3b8717b3aab3494135bc28e616115b13e6727bcbd254f57fbee174cd3e6e30274b37cf86c184acc4471298f194ae97c11a50a382a0bb23a1b96d
|
data/Gemfile.lock
CHANGED
|
@@ -1,34 +1,23 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
armitage-rubocop (1.
|
|
5
|
-
rubocop (= 1.
|
|
4
|
+
armitage-rubocop (1.91.0.0)
|
|
5
|
+
rubocop (= 1.91.0)
|
|
6
6
|
rubocop-capybara (= 3.0.0)
|
|
7
7
|
rubocop-factory_bot (= 2.28.0)
|
|
8
|
-
rubocop-on-rbs (= 2.
|
|
9
|
-
rubocop-performance (= 1.
|
|
10
|
-
rubocop-rails (= 2.
|
|
8
|
+
rubocop-on-rbs (= 2.2.0)
|
|
9
|
+
rubocop-performance (= 1.27.0)
|
|
10
|
+
rubocop-rails (= 2.38.0)
|
|
11
11
|
rubocop-rake (= 0.7.1)
|
|
12
12
|
rubocop-rspec (= 3.10.2)
|
|
13
13
|
rubocop-rspec_rails (= 2.32.0)
|
|
14
|
-
rubocop-thread_safety (= 0.
|
|
15
|
-
|
|
16
|
-
rubocop (= 1.89.0)
|
|
17
|
-
rubocop-capybara (= 3.0.0)
|
|
18
|
-
rubocop-factory_bot (= 2.28.0)
|
|
19
|
-
rubocop-on-rbs (= 2.0.0)
|
|
20
|
-
rubocop-performance (= 1.26.1)
|
|
21
|
-
rubocop-rails (= 2.36.0)
|
|
22
|
-
rubocop-rake (= 0.7.1)
|
|
23
|
-
rubocop-rspec (= 3.10.2)
|
|
24
|
-
rubocop-rspec_rails (= 2.32.0)
|
|
25
|
-
rubocop-thread_safety (= 0.7.3)
|
|
26
|
-
rubydex (= 0.3.0)
|
|
14
|
+
rubocop-thread_safety (= 0.8.0)
|
|
15
|
+
rubydex (= 0.4.1)
|
|
27
16
|
|
|
28
17
|
GEM
|
|
29
18
|
remote: https://rubygems.org/
|
|
30
19
|
specs:
|
|
31
|
-
activesupport (8.1.
|
|
20
|
+
activesupport (8.1.4)
|
|
32
21
|
base64
|
|
33
22
|
bigdecimal
|
|
34
23
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -43,15 +32,15 @@ GEM
|
|
|
43
32
|
uri (>= 0.13.1)
|
|
44
33
|
ast (2.4.3)
|
|
45
34
|
base64 (0.3.0)
|
|
46
|
-
bigdecimal (4.1.
|
|
35
|
+
bigdecimal (4.1.3)
|
|
47
36
|
coderay (1.1.3)
|
|
48
37
|
concurrent-ruby (1.3.8)
|
|
49
38
|
connection_pool (3.0.2)
|
|
50
39
|
drb (2.2.3)
|
|
51
40
|
i18n (1.15.2)
|
|
52
41
|
concurrent-ruby (~> 1.0)
|
|
53
|
-
io-console (0.
|
|
54
|
-
json (
|
|
42
|
+
io-console (0.9.4)
|
|
43
|
+
json (3.0.2)
|
|
55
44
|
language_server-protocol (3.17.0.6)
|
|
56
45
|
lint_roller (1.1.0)
|
|
57
46
|
logger (1.7.0)
|
|
@@ -59,7 +48,7 @@ GEM
|
|
|
59
48
|
minitest (6.0.6)
|
|
60
49
|
drb (~> 2.0)
|
|
61
50
|
prism (~> 1.5)
|
|
62
|
-
parallel (2.
|
|
51
|
+
parallel (2.3.0)
|
|
63
52
|
parser (3.3.12.0)
|
|
64
53
|
ast (~> 2.4.1)
|
|
65
54
|
racc
|
|
@@ -69,18 +58,18 @@ GEM
|
|
|
69
58
|
method_source (~> 1.0)
|
|
70
59
|
reline (>= 0.6.0)
|
|
71
60
|
racc (1.8.1)
|
|
72
|
-
rack (3.2.
|
|
61
|
+
rack (3.2.7)
|
|
73
62
|
rainbow (3.1.1)
|
|
74
63
|
rake (13.4.2)
|
|
75
|
-
rbs (4.
|
|
64
|
+
rbs (4.2.0)
|
|
76
65
|
logger
|
|
77
66
|
prism (>= 1.6.0)
|
|
78
67
|
tsort
|
|
79
|
-
regexp_parser (2.
|
|
80
|
-
reline (0.
|
|
68
|
+
regexp_parser (2.13.1)
|
|
69
|
+
reline (0.7.0)
|
|
81
70
|
io-console (~> 0.5)
|
|
82
|
-
rubocop (1.
|
|
83
|
-
json (
|
|
71
|
+
rubocop (1.91.0)
|
|
72
|
+
json (>= 2.3)
|
|
84
73
|
language_server-protocol (~> 3.17.0.2)
|
|
85
74
|
lint_roller (~> 1.1.0)
|
|
86
75
|
parallel (>= 1.10)
|
|
@@ -99,20 +88,19 @@ GEM
|
|
|
99
88
|
rubocop-factory_bot (2.28.0)
|
|
100
89
|
lint_roller (~> 1.1)
|
|
101
90
|
rubocop (~> 1.72, >= 1.72.1)
|
|
102
|
-
rubocop-on-rbs (2.
|
|
91
|
+
rubocop-on-rbs (2.2.0)
|
|
103
92
|
lint_roller (~> 1.1)
|
|
104
93
|
rbs (~> 4.0)
|
|
105
94
|
rubocop (>= 1.72.1, < 2.0)
|
|
106
|
-
|
|
107
|
-
rubocop-performance (1.26.1)
|
|
95
|
+
rubocop-performance (1.27.0)
|
|
108
96
|
lint_roller (~> 1.1)
|
|
109
|
-
rubocop (>= 1.
|
|
97
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
110
98
|
rubocop-ast (>= 1.47.1, < 2.0)
|
|
111
|
-
rubocop-rails (2.
|
|
99
|
+
rubocop-rails (2.38.0)
|
|
112
100
|
activesupport (>= 4.2.0)
|
|
113
101
|
lint_roller (~> 1.1)
|
|
114
102
|
rack (>= 1.1)
|
|
115
|
-
rubocop (>= 1.
|
|
103
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
116
104
|
rubocop-ast (>= 1.44.0, < 2.0)
|
|
117
105
|
rubocop-rake (0.7.1)
|
|
118
106
|
lint_roller (~> 1.1)
|
|
@@ -125,32 +113,90 @@ GEM
|
|
|
125
113
|
lint_roller (~> 1.1)
|
|
126
114
|
rubocop (~> 1.72, >= 1.72.1)
|
|
127
115
|
rubocop-rspec (~> 3.5)
|
|
128
|
-
rubocop-thread_safety (0.
|
|
116
|
+
rubocop-thread_safety (0.8.0)
|
|
129
117
|
lint_roller (~> 1.1)
|
|
130
|
-
rubocop (~> 1.
|
|
118
|
+
rubocop (~> 1.89)
|
|
131
119
|
rubocop-ast (>= 1.44.0, < 2.0)
|
|
132
120
|
ruby-progressbar (1.13.0)
|
|
133
|
-
rubydex (0.
|
|
134
|
-
rubydex (0.
|
|
121
|
+
rubydex (0.4.1)
|
|
122
|
+
rubydex (0.4.1-aarch64-linux)
|
|
123
|
+
rubydex (0.4.1-arm64-darwin)
|
|
124
|
+
rubydex (0.4.1-x86_64-darwin)
|
|
125
|
+
rubydex (0.4.1-x86_64-linux)
|
|
135
126
|
securerandom (0.4.1)
|
|
136
127
|
tsort (0.2.0)
|
|
137
128
|
tzinfo (2.0.6)
|
|
138
129
|
concurrent-ruby (~> 1.0)
|
|
139
|
-
unicode-display_width (3.
|
|
140
|
-
unicode-emoji (~> 4.
|
|
141
|
-
unicode-emoji (4.
|
|
130
|
+
unicode-display_width (3.3.0)
|
|
131
|
+
unicode-emoji (~> 4.3)
|
|
132
|
+
unicode-emoji (4.3.0)
|
|
142
133
|
uri (1.1.1)
|
|
143
|
-
zlib (3.2.3)
|
|
144
134
|
|
|
145
135
|
PLATFORMS
|
|
146
|
-
|
|
136
|
+
aarch64-linux
|
|
137
|
+
arm64-darwin
|
|
147
138
|
ruby
|
|
139
|
+
x86_64-darwin
|
|
140
|
+
x86_64-linux
|
|
148
141
|
|
|
149
142
|
DEPENDENCIES
|
|
150
143
|
armitage-rubocop!
|
|
151
|
-
bundler (
|
|
152
|
-
pry (
|
|
153
|
-
rake (
|
|
144
|
+
bundler (= 4.0.22)
|
|
145
|
+
pry (= 0.16.0)
|
|
146
|
+
rake (= 13.4.2)
|
|
147
|
+
|
|
148
|
+
CHECKSUMS
|
|
149
|
+
activesupport (8.1.4) sha256=891dd3fe43c4fc8391934b237b1189bb1f661c932a84a840043db9d46a4e80df
|
|
150
|
+
armitage-rubocop (1.91.0.0)
|
|
151
|
+
ast (2.4.3) sha256=954615157c1d6a382bc27d690d973195e79db7f55e9765ac7c481c60bdb4d383
|
|
152
|
+
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
|
|
153
|
+
bigdecimal (4.1.3) sha256=61ebe1e5e559bdc3cc6f2c0ee7f427321fc838f59611c294356eb04d6e21cf66
|
|
154
|
+
coderay (1.1.3) sha256=dc530018a4684512f8f38143cd2a096c9f02a1fc2459edcfe534787a7fc77d4b
|
|
155
|
+
concurrent-ruby (1.3.8) sha256=b2f1be836e968ccc78ccfce277ea79c72a88633f22306782c16ff23fb415d1e1
|
|
156
|
+
connection_pool (3.0.2) sha256=33fff5ba71a12d2aa26cb72b1db8bba2a1a01823559fb01d29eb74c286e62e0a
|
|
157
|
+
drb (2.2.3) sha256=0b00d6fdb50995fe4a45dea13663493c841112e4068656854646f418fda13373
|
|
158
|
+
i18n (1.15.2) sha256=00f9eb62412fe593b2a65a97daa75300d37abb8f7202ec748e94b6d46a9dd1b5
|
|
159
|
+
io-console (0.9.4) sha256=a403304f32928ee85e56d457b4612ca43f2703b561a3258844992bd24085fbb1
|
|
160
|
+
json (3.0.2) sha256=8e6d7e7b11384c21230430cef90b71f14849a34a1f4452796670f7c981bd19df
|
|
161
|
+
language_server-protocol (3.17.0.6) sha256=5ef2c0c138f8267e1bc631d3328347d354f96724b0af22f2c79516120443b7f0
|
|
162
|
+
lint_roller (1.1.0) sha256=2c0c845b632a7d172cb849cc90c1bce937a28c5c8ccccb50dfd46a485003cc87
|
|
163
|
+
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
|
|
164
|
+
method_source (1.1.0) sha256=181301c9c45b731b4769bc81e8860e72f9161ad7d66dd99103c9ab84f560f5c5
|
|
165
|
+
minitest (6.0.6) sha256=153ea36d1d987a62942382b61075745042a2b3123b1cd48f4c3675af9cc7d6f1
|
|
166
|
+
parallel (2.3.0) sha256=f75a3e904101ce6a1ccb6b8dc800cbafd42166d83330192438dcf29395167a6f
|
|
167
|
+
parser (3.3.12.0) sha256=21a6d7f755d5a24dfbdc6e6b772e4e879a52e7631a88bc5a3a134606052c9828
|
|
168
|
+
prism (1.9.0) sha256=7b530c6a9f92c24300014919c9dcbc055bf4cdf51ec30aed099b06cd6674ef85
|
|
169
|
+
pry (0.16.0) sha256=d76c69065698ed1f85e717bd33d7942c38a50868f6b0673c636192b3d1b6054e
|
|
170
|
+
racc (1.8.1) sha256=4a7f6929691dbec8b5209a0b373bc2614882b55fc5d2e447a21aaa691303d62f
|
|
171
|
+
rack (3.2.7) sha256=93e13e1c24f93556671d85d2d79fa228c3485815c50d7e2f265b5330c6528fb7
|
|
172
|
+
rainbow (3.1.1) sha256=039491aa3a89f42efa1d6dec2fc4e62ede96eb6acd95e52f1ad581182b79bc6a
|
|
173
|
+
rake (13.4.2) sha256=cb825b2bd5f1f8e91ca37bddb4b9aaf345551b4731da62949be002fa89283701
|
|
174
|
+
rbs (4.2.0) sha256=51f7b886dcc05bc09e10b901daa6a81829f6adc03101d6ca9ea4aac6103e0674
|
|
175
|
+
regexp_parser (2.13.1) sha256=5aedb6b7c35688f51e86eef17a15374dfd287c83f4ca644b2c5f3ec50a33b44b
|
|
176
|
+
reline (0.7.0) sha256=5b012d8e55dbf9d450f12bde2cf7d15ff546ae80b3f8f3b30e570d431815583d
|
|
177
|
+
rubocop (1.91.0) sha256=9c82b7bf391c5d7e3798c5b9996e22a1fe3bd7468e351dfdeb96140c058296d0
|
|
178
|
+
rubocop-ast (1.50.0) sha256=b9ca88300da0803ee222ad20cdb30494c0a784eed06fdc35d254b06d662788db
|
|
179
|
+
rubocop-capybara (3.0.0) sha256=7a64655238acda7f8f3c87e37ac825a64c615a79c17c253f1a28270dc3768c4b
|
|
180
|
+
rubocop-factory_bot (2.28.0) sha256=4b17fc02124444173317e131759d195b0d762844a71a29fe8139c1105d92f0cb
|
|
181
|
+
rubocop-on-rbs (2.2.0) sha256=a78c1fa10fd9d78e26a9de67e9428a1ef6b5dc3b61e3db69e201222ccd588cf5
|
|
182
|
+
rubocop-performance (1.27.0) sha256=eeeb1374d062a368ee1c787b70eb0b0cc4b184cb1f8565f424760946146d61ce
|
|
183
|
+
rubocop-rails (2.38.0) sha256=6e2b7c532efa95e3050371bec20b8f5b025662acead8bc70ee31f0e3e6fa2f06
|
|
184
|
+
rubocop-rake (0.7.1) sha256=3797f2b6810c3e9df7376c26d5f44f3475eda59eb1adc38e6f62ecf027cbae4d
|
|
185
|
+
rubocop-rspec (3.10.2) sha256=0b3e2ecc592cd10ecbf0095bb58d1e357905276e069643523cc19eb7495f65e2
|
|
186
|
+
rubocop-rspec_rails (2.32.0) sha256=4a0d641c72f6ebb957534f539d9d0a62c47abd8ce0d0aeee1ef4701e892a9100
|
|
187
|
+
rubocop-thread_safety (0.8.0) sha256=71fe5e7894fb9acfbd4c2dcd394feabc35bd690f75b0bc846e1504d9e31f9034
|
|
188
|
+
ruby-progressbar (1.13.0) sha256=80fc9c47a9b640d6834e0dc7b3c94c9df37f08cb072b7761e4a71e22cff29b33
|
|
189
|
+
rubydex (0.4.1) sha256=9856af8bfbe656eed95449dd9e2c8239a74662b4bb8563e4b99221dbc065a34a
|
|
190
|
+
rubydex (0.4.1-aarch64-linux) sha256=abc1c9eb22479f60dd015fa81373163c5a71f2700b76bced1282631686bd6271
|
|
191
|
+
rubydex (0.4.1-arm64-darwin) sha256=d23720253876d88fb98954e5d3a1ef9696a269697acf50e3ab53cdfbb2b66b96
|
|
192
|
+
rubydex (0.4.1-x86_64-darwin) sha256=a9681db5bc9be6a62f226d96d6889b6b600d0b09e7576391702aafd29912145b
|
|
193
|
+
rubydex (0.4.1-x86_64-linux) sha256=4e2c8398c9fc585485b54edd28f5ecf76b5a02255e177b6f8402e9d2afffd51b
|
|
194
|
+
securerandom (0.4.1) sha256=cc5193d414a4341b6e225f0cb4446aceca8e50d5e1888743fac16987638ea0b1
|
|
195
|
+
tsort (0.2.0) sha256=9650a793f6859a43b6641671278f79cfead60ac714148aabe4e3f0060480089f
|
|
196
|
+
tzinfo (2.0.6) sha256=8daf828cc77bcf7d63b0e3bdb6caa47e2272dcfaf4fbfe46f8c3a9df087a829b
|
|
197
|
+
unicode-display_width (3.3.0) sha256=4b7aa66a4b11db50f6f7e98411215cd0dd10eaecb665d36eec5bcacb3fa0b613
|
|
198
|
+
unicode-emoji (4.3.0) sha256=11c02fa73290378c066bb0562cd4c87d8e1b706fbbe0059ca12746a4244de8ce
|
|
199
|
+
uri (1.1.1) sha256=379fa58d27ffb1387eaada68c749d1426738bd0f654d812fcc07e7568f5c57c6
|
|
154
200
|
|
|
155
201
|
BUNDLED WITH
|
|
156
|
-
|
|
202
|
+
4.0.22
|
data/README.md
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
+
### Useful links:
|
|
10
|
+
|
|
11
|
+
- [rubocop-on-rbs docs](https://github.com/ksss/rubocop-on-rbs/blob/main/docs/modules/ROOT/pages/cops_rbs_layout.adoc#rbslayoutspaceaftercomma)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
9
15
|
Configured rules:
|
|
10
16
|
|
|
11
17
|
- **Common** (`.rubocop.general.yml`) (`.rubocop.rails.yml`) (`.rubocop.rake.yml`)
|
|
@@ -31,6 +37,7 @@ Configured rules:
|
|
|
31
37
|
- Style
|
|
32
38
|
- Lint
|
|
33
39
|
- Layout
|
|
40
|
+
- Inline
|
|
34
41
|
|
|
35
42
|
---
|
|
36
43
|
|
data/armitage-rubocop.gemspec
CHANGED
|
@@ -6,7 +6,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
7
|
spec.required_ruby_version = '>= 4.0'
|
|
8
8
|
|
|
9
|
-
spec.version = '1.
|
|
9
|
+
spec.version = '1.91.0.0'
|
|
10
10
|
|
|
11
11
|
spec.name = 'armitage-rubocop'
|
|
12
12
|
spec.license = 'MIT'
|
|
@@ -24,19 +24,19 @@ Gem::Specification.new do |spec|
|
|
|
24
24
|
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
spec.add_dependency 'rubocop', '= 1.
|
|
28
|
-
spec.add_dependency 'rubocop-performance', '= 1.
|
|
29
|
-
spec.add_dependency 'rubocop-rails', '= 2.
|
|
27
|
+
spec.add_dependency 'rubocop', '= 1.91.0'
|
|
28
|
+
spec.add_dependency 'rubocop-performance', '= 1.27.0'
|
|
29
|
+
spec.add_dependency 'rubocop-rails', '= 2.38.0'
|
|
30
30
|
spec.add_dependency 'rubocop-rspec', '= 3.10.2'
|
|
31
31
|
spec.add_dependency 'rubocop-rspec_rails', '= 2.32.0'
|
|
32
32
|
spec.add_dependency 'rubocop-rake', '= 0.7.1'
|
|
33
33
|
spec.add_dependency 'rubocop-capybara', '= 3.0.0'
|
|
34
34
|
spec.add_dependency 'rubocop-factory_bot', '= 2.28.0'
|
|
35
|
-
spec.add_dependency 'rubocop-on-rbs', '= 2.
|
|
36
|
-
spec.add_dependency 'rubocop-thread_safety', '= 0.
|
|
37
|
-
spec.add_dependency 'rubydex', '= 0.
|
|
35
|
+
spec.add_dependency 'rubocop-on-rbs', '= 2.2.0'
|
|
36
|
+
spec.add_dependency 'rubocop-thread_safety', '= 0.8.0'
|
|
37
|
+
spec.add_dependency 'rubydex', '= 0.4.1'
|
|
38
38
|
|
|
39
|
-
spec.add_development_dependency 'bundler',
|
|
40
|
-
spec.add_development_dependency 'rake',
|
|
41
|
-
spec.add_development_dependency 'pry',
|
|
39
|
+
spec.add_development_dependency 'bundler', '= 4.0.22'
|
|
40
|
+
spec.add_development_dependency 'rake', '= 13.4.2'
|
|
41
|
+
spec.add_development_dependency 'pry', '= 0.16.0'
|
|
42
42
|
end
|
data/lib/common/layout.yml
CHANGED
data/lib/common/lint.yml
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
Lint/ArgumentMismatch:
|
|
2
|
+
Enabled: true
|
|
3
|
+
|
|
4
|
+
Lint/SuperArgumentMismatch:
|
|
5
|
+
Enabled: true
|
|
6
|
+
|
|
1
7
|
Lint/AmbiguousAssignment:
|
|
2
8
|
Enabled: false
|
|
3
9
|
|
|
@@ -98,6 +104,7 @@ Lint/DuplicateCaseCondition:
|
|
|
98
104
|
|
|
99
105
|
Lint/DuplicateMethods:
|
|
100
106
|
Enabled: true
|
|
107
|
+
AllowedCrossFilePaths: []
|
|
101
108
|
|
|
102
109
|
Lint/DuplicateHashKey:
|
|
103
110
|
Enabled: true
|
|
@@ -244,6 +251,9 @@ Lint/Loop:
|
|
|
244
251
|
Enabled: true
|
|
245
252
|
AutoCorrect: true
|
|
246
253
|
|
|
254
|
+
Lint/MisplacedMagicComment:
|
|
255
|
+
Enabled: true
|
|
256
|
+
|
|
247
257
|
Lint/MissingCopEnableDirective:
|
|
248
258
|
Enabled: true
|
|
249
259
|
|
|
@@ -483,6 +493,8 @@ Lint/UnreachableCode:
|
|
|
483
493
|
|
|
484
494
|
Lint/UnusedPrivateMethod:
|
|
485
495
|
Enabled: true
|
|
496
|
+
AllowedNames: []
|
|
497
|
+
AllowedPatterns: []
|
|
486
498
|
|
|
487
499
|
Lint/UnusedBlockArgument:
|
|
488
500
|
Enabled: false
|
data/lib/common/style.yml
CHANGED
|
@@ -168,6 +168,9 @@ Style/DateTime:
|
|
|
168
168
|
Style/DefWithParentheses:
|
|
169
169
|
Enabled: true
|
|
170
170
|
|
|
171
|
+
Style/DirectiveScope:
|
|
172
|
+
Enabled: false # TODO: true and use the push/pop disable-next and others actively;
|
|
173
|
+
|
|
171
174
|
Style/Dir:
|
|
172
175
|
Enabled: true
|
|
173
176
|
|
|
@@ -862,6 +865,9 @@ Style/SelectByRange:
|
|
|
862
865
|
Style/TallyMethod:
|
|
863
866
|
Enabled: false # NOTE: unsafe (receiver can be not an array/enumerable)
|
|
864
867
|
|
|
868
|
+
Style/TimeNow:
|
|
869
|
+
Enabled: true
|
|
870
|
+
|
|
865
871
|
Style/SelectByRegexp:
|
|
866
872
|
Enabled: false
|
|
867
873
|
|
|
@@ -1,8 +1,40 @@
|
|
|
1
|
+
ThreadSafety/MethodRedefinition:
|
|
2
|
+
Enabled: true
|
|
3
|
+
|
|
4
|
+
ThreadSafety/ActiveSupportCallbacks:
|
|
5
|
+
# NOTE:
|
|
6
|
+
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
7
|
+
# - i write a lot of DSL and architecture frameworks;
|
|
8
|
+
# - so i manage this via blocking privitives;
|
|
9
|
+
# TODO:
|
|
10
|
+
# - enable in future;
|
|
11
|
+
Enabled: false
|
|
12
|
+
|
|
13
|
+
ThreadSafety/LazySynchronizationPrimitive:
|
|
14
|
+
# NOTE:
|
|
15
|
+
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
16
|
+
# - i write a lot of DSL and architecture frameworks;
|
|
17
|
+
# - so i manage this via blocking privitives;
|
|
18
|
+
# TODO:
|
|
19
|
+
# - enable in future;
|
|
20
|
+
Enabled: false
|
|
21
|
+
|
|
22
|
+
ThreadSafety/EnvMutation:
|
|
23
|
+
# NOTE:
|
|
24
|
+
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
25
|
+
# - i write a lot of DSL and architecture frameworks;
|
|
26
|
+
# - so i manage this via blocking privitives;
|
|
27
|
+
# TODO:
|
|
28
|
+
# - enable in future
|
|
29
|
+
Enabled: false
|
|
30
|
+
|
|
1
31
|
ThreadSafety/ClassAndModuleAttributes:
|
|
2
32
|
# NOTE:
|
|
3
33
|
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
4
34
|
# - i write a lot of DSL and architecture frameworks;
|
|
5
|
-
# - so i manage this
|
|
35
|
+
# - so i manage this via blocking privitives;
|
|
36
|
+
# TODO:
|
|
37
|
+
# - enable in future
|
|
6
38
|
Enabled: false
|
|
7
39
|
ActiveSupportClassAttributeAllowed: false
|
|
8
40
|
|
|
@@ -10,14 +42,18 @@ ThreadSafety/ClassInstanceVariable:
|
|
|
10
42
|
# NOTE:
|
|
11
43
|
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
12
44
|
# - i write a lot of DSL and architecture frameworks;
|
|
13
|
-
# - so i manage this
|
|
45
|
+
# - so i manage this via blocking privitives;
|
|
46
|
+
# TODO:
|
|
47
|
+
# - enable in future
|
|
14
48
|
Enabled: false
|
|
15
49
|
|
|
16
50
|
ThreadSafety/DirChdir:
|
|
17
51
|
# NOTE:
|
|
18
52
|
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
19
53
|
# - i write a lot of DSL and architecture frameworks;
|
|
20
|
-
# - so i manage this
|
|
54
|
+
# - so i manage this via blocking privitives;
|
|
55
|
+
# TODO:
|
|
56
|
+
# - enable in future
|
|
21
57
|
Enabled: false
|
|
22
58
|
AllowCallWithBlock: true
|
|
23
59
|
|
|
@@ -25,7 +61,9 @@ ThreadSafety/MutableClassInstanceVariable:
|
|
|
25
61
|
# NOTE:
|
|
26
62
|
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
27
63
|
# - i write a lot of DSL and architecture frameworks;
|
|
28
|
-
# - so i manage this
|
|
64
|
+
# - so i manage this via blocking privitives;
|
|
65
|
+
# TODO:
|
|
66
|
+
# - enable in future
|
|
29
67
|
Enabled: false
|
|
30
68
|
EnforcedStyle: literals
|
|
31
69
|
|
|
@@ -37,7 +75,9 @@ ThreadSafety/RackMiddlewareInstanceVariable:
|
|
|
37
75
|
# NOTE:
|
|
38
76
|
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
39
77
|
# - i write a lot of DSL and architecture frameworks;
|
|
40
|
-
# - so i manage this
|
|
78
|
+
# - so i manage this via blocking privitives;
|
|
79
|
+
# TODO:
|
|
80
|
+
# - enable in future
|
|
41
81
|
Enabled: false
|
|
42
82
|
Include:
|
|
43
83
|
- app/middleware/**/*.rb
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
RBSInline/Lint/AmbiguousKeywordArgumentKey:
|
|
2
|
+
Enabled: true
|
|
3
|
+
|
|
4
|
+
RBSInline/Lint/DuplicateOverload:
|
|
5
|
+
Enabled: true
|
|
6
|
+
|
|
7
|
+
RBSInline/Lint/LiteralIntersection:
|
|
8
|
+
Enabled: true
|
|
9
|
+
|
|
10
|
+
RBSInline/Lint/NewReturnsVoid:
|
|
11
|
+
Enabled: true
|
|
12
|
+
|
|
13
|
+
RBSInline/Lint/RestKeywordHash:
|
|
14
|
+
Enabled: true
|
|
15
|
+
|
|
16
|
+
RBSInline/Lint/Syntax:
|
|
17
|
+
Enabled: true
|
|
18
|
+
|
|
19
|
+
RBSInline/Lint/UnusedAnnotation:
|
|
20
|
+
Enabled: true
|
|
21
|
+
|
|
22
|
+
RBSInline/Lint/UnusedOverloadTypeParams:
|
|
23
|
+
Enabled: true
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
RBSInline/Style/BlockReturnBoolish:
|
|
2
|
+
Enabled: true
|
|
3
|
+
|
|
4
|
+
RBSInline/Style/ClassWithSingleton:
|
|
5
|
+
Enabled: true
|
|
6
|
+
|
|
7
|
+
RBSInline/Style/ClassicType:
|
|
8
|
+
Enabled: true
|
|
9
|
+
|
|
10
|
+
RBSInline/Style/DuplicatedType:
|
|
11
|
+
Enabled: true
|
|
12
|
+
|
|
13
|
+
RBSInline/Style/EmptyArgument:
|
|
14
|
+
Enabled: true
|
|
15
|
+
|
|
16
|
+
RBSInline/Style/InitializeReturnType:
|
|
17
|
+
Enabled: true
|
|
18
|
+
|
|
19
|
+
RBSInline/Style/InstanceWithInstance:
|
|
20
|
+
Enabled: true
|
|
21
|
+
|
|
22
|
+
RBSInline/Style/OptionalNil:
|
|
23
|
+
Enabled: true
|
|
24
|
+
|
|
25
|
+
RBSInline/Style/RedundantParentheses:
|
|
26
|
+
Enabled: true
|
|
27
|
+
|
|
28
|
+
RBSInline/Style/TrueFalse:
|
|
29
|
+
Enabled: true
|
data/lib/rbs/layout.yml
CHANGED
data/lib/rubocop.rbs.yml
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: armitage-rubocop
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.91.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rustam Ibragimov
|
|
@@ -15,42 +15,42 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 1.
|
|
18
|
+
version: 1.91.0
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - '='
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: 1.
|
|
25
|
+
version: 1.91.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: rubocop-performance
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
29
29
|
requirements:
|
|
30
30
|
- - '='
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
|
-
version: 1.
|
|
32
|
+
version: 1.27.0
|
|
33
33
|
type: :runtime
|
|
34
34
|
prerelease: false
|
|
35
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
37
|
- - '='
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
|
-
version: 1.
|
|
39
|
+
version: 1.27.0
|
|
40
40
|
- !ruby/object:Gem::Dependency
|
|
41
41
|
name: rubocop-rails
|
|
42
42
|
requirement: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
44
|
- - '='
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: 2.
|
|
46
|
+
version: 2.38.0
|
|
47
47
|
type: :runtime
|
|
48
48
|
prerelease: false
|
|
49
49
|
version_requirements: !ruby/object:Gem::Requirement
|
|
50
50
|
requirements:
|
|
51
51
|
- - '='
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 2.
|
|
53
|
+
version: 2.38.0
|
|
54
54
|
- !ruby/object:Gem::Dependency
|
|
55
55
|
name: rubocop-rspec
|
|
56
56
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -127,84 +127,84 @@ dependencies:
|
|
|
127
127
|
requirements:
|
|
128
128
|
- - '='
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
|
-
version: 2.
|
|
130
|
+
version: 2.2.0
|
|
131
131
|
type: :runtime
|
|
132
132
|
prerelease: false
|
|
133
133
|
version_requirements: !ruby/object:Gem::Requirement
|
|
134
134
|
requirements:
|
|
135
135
|
- - '='
|
|
136
136
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: 2.
|
|
137
|
+
version: 2.2.0
|
|
138
138
|
- !ruby/object:Gem::Dependency
|
|
139
139
|
name: rubocop-thread_safety
|
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
|
141
141
|
requirements:
|
|
142
142
|
- - '='
|
|
143
143
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: 0.
|
|
144
|
+
version: 0.8.0
|
|
145
145
|
type: :runtime
|
|
146
146
|
prerelease: false
|
|
147
147
|
version_requirements: !ruby/object:Gem::Requirement
|
|
148
148
|
requirements:
|
|
149
149
|
- - '='
|
|
150
150
|
- !ruby/object:Gem::Version
|
|
151
|
-
version: 0.
|
|
151
|
+
version: 0.8.0
|
|
152
152
|
- !ruby/object:Gem::Dependency
|
|
153
153
|
name: rubydex
|
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
|
155
155
|
requirements:
|
|
156
156
|
- - '='
|
|
157
157
|
- !ruby/object:Gem::Version
|
|
158
|
-
version: 0.
|
|
158
|
+
version: 0.4.1
|
|
159
159
|
type: :runtime
|
|
160
160
|
prerelease: false
|
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
|
162
162
|
requirements:
|
|
163
163
|
- - '='
|
|
164
164
|
- !ruby/object:Gem::Version
|
|
165
|
-
version: 0.
|
|
165
|
+
version: 0.4.1
|
|
166
166
|
- !ruby/object:Gem::Dependency
|
|
167
167
|
name: bundler
|
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
|
169
169
|
requirements:
|
|
170
|
-
- -
|
|
170
|
+
- - '='
|
|
171
171
|
- !ruby/object:Gem::Version
|
|
172
|
-
version:
|
|
172
|
+
version: 4.0.22
|
|
173
173
|
type: :development
|
|
174
174
|
prerelease: false
|
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
|
176
176
|
requirements:
|
|
177
|
-
- -
|
|
177
|
+
- - '='
|
|
178
178
|
- !ruby/object:Gem::Version
|
|
179
|
-
version:
|
|
179
|
+
version: 4.0.22
|
|
180
180
|
- !ruby/object:Gem::Dependency
|
|
181
181
|
name: rake
|
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
|
183
183
|
requirements:
|
|
184
|
-
- -
|
|
184
|
+
- - '='
|
|
185
185
|
- !ruby/object:Gem::Version
|
|
186
|
-
version:
|
|
186
|
+
version: 13.4.2
|
|
187
187
|
type: :development
|
|
188
188
|
prerelease: false
|
|
189
189
|
version_requirements: !ruby/object:Gem::Requirement
|
|
190
190
|
requirements:
|
|
191
|
-
- -
|
|
191
|
+
- - '='
|
|
192
192
|
- !ruby/object:Gem::Version
|
|
193
|
-
version:
|
|
193
|
+
version: 13.4.2
|
|
194
194
|
- !ruby/object:Gem::Dependency
|
|
195
195
|
name: pry
|
|
196
196
|
requirement: !ruby/object:Gem::Requirement
|
|
197
197
|
requirements:
|
|
198
|
-
- -
|
|
198
|
+
- - '='
|
|
199
199
|
- !ruby/object:Gem::Version
|
|
200
|
-
version:
|
|
200
|
+
version: 0.16.0
|
|
201
201
|
type: :development
|
|
202
202
|
prerelease: false
|
|
203
203
|
version_requirements: !ruby/object:Gem::Requirement
|
|
204
204
|
requirements:
|
|
205
|
-
- -
|
|
205
|
+
- - '='
|
|
206
206
|
- !ruby/object:Gem::Version
|
|
207
|
-
version:
|
|
207
|
+
version: 0.16.0
|
|
208
208
|
description: 'A set of rubocop settings used in my own projects.Support for: vanilla
|
|
209
209
|
ruby, rspec, rails.'
|
|
210
210
|
email:
|
|
@@ -237,6 +237,8 @@ files:
|
|
|
237
237
|
- lib/common/security.yml
|
|
238
238
|
- lib/common/style.yml
|
|
239
239
|
- lib/common/thread_safety.yml
|
|
240
|
+
- lib/rbs/inline_lint.yml
|
|
241
|
+
- lib/rbs/inline_style.yml
|
|
240
242
|
- lib/rbs/layout.yml
|
|
241
243
|
- lib/rbs/lint.yml
|
|
242
244
|
- lib/rbs/style.yml
|
|
@@ -267,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
267
269
|
- !ruby/object:Gem::Version
|
|
268
270
|
version: '0'
|
|
269
271
|
requirements: []
|
|
270
|
-
rubygems_version: 4.0.
|
|
272
|
+
rubygems_version: 4.0.22
|
|
271
273
|
specification_version: 4
|
|
272
274
|
summary: A set of rubocop settings
|
|
273
275
|
test_files: []
|