armitage-rubocop 1.81.7.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/.rubocop.yml +1 -1
- data/Gemfile.lock +122 -63
- data/README.md +7 -0
- data/armitage-rubocop.gemspec +13 -12
- data/lib/common/layout.yml +21 -7
- data/lib/common/lint.yml +24 -0
- data/lib/common/rails.yml +9 -0
- data/lib/common/style.yml +90 -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 +4 -0
- data/lib/rbs/lint.yml +0 -3
- data/lib/rspec/capybara.yml +18 -16
- data/lib/rspec/rspec.yml +9 -0
- data/lib/rubocop.general.yml +1 -0
- data/lib/rubocop.rbs.yml +2 -0
- metadata +45 -29
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/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,33 +1,23 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
armitage-rubocop (1.
|
|
5
|
-
rubocop (= 1.
|
|
6
|
-
rubocop-capybara (=
|
|
4
|
+
armitage-rubocop (1.91.0.0)
|
|
5
|
+
rubocop (= 1.91.0)
|
|
6
|
+
rubocop-capybara (= 3.0.0)
|
|
7
7
|
rubocop-factory_bot (= 2.28.0)
|
|
8
|
-
rubocop-on-rbs (=
|
|
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
|
-
rubocop-rspec (= 3.
|
|
12
|
+
rubocop-rspec (= 3.10.2)
|
|
13
13
|
rubocop-rspec_rails (= 2.32.0)
|
|
14
|
-
rubocop-thread_safety (= 0.
|
|
15
|
-
|
|
16
|
-
rubocop (= 1.81.7)
|
|
17
|
-
rubocop-capybara (= 2.22.1)
|
|
18
|
-
rubocop-factory_bot (= 2.28.0)
|
|
19
|
-
rubocop-on-rbs (= 1.8.0)
|
|
20
|
-
rubocop-performance (= 1.26.1)
|
|
21
|
-
rubocop-rails (= 2.33.4)
|
|
22
|
-
rubocop-rake (= 0.7.1)
|
|
23
|
-
rubocop-rspec (= 3.8.0)
|
|
24
|
-
rubocop-rspec_rails (= 2.32.0)
|
|
25
|
-
rubocop-thread_safety (= 0.7.3)
|
|
14
|
+
rubocop-thread_safety (= 0.8.0)
|
|
15
|
+
rubydex (= 0.4.1)
|
|
26
16
|
|
|
27
17
|
GEM
|
|
28
18
|
remote: https://rubygems.org/
|
|
29
19
|
specs:
|
|
30
|
-
activesupport (8.1.
|
|
20
|
+
activesupport (8.1.4)
|
|
31
21
|
base64
|
|
32
22
|
bigdecimal
|
|
33
23
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -42,102 +32,171 @@ GEM
|
|
|
42
32
|
uri (>= 0.13.1)
|
|
43
33
|
ast (2.4.3)
|
|
44
34
|
base64 (0.3.0)
|
|
45
|
-
bigdecimal (
|
|
35
|
+
bigdecimal (4.1.3)
|
|
46
36
|
coderay (1.1.3)
|
|
47
|
-
concurrent-ruby (1.3.
|
|
48
|
-
connection_pool (
|
|
37
|
+
concurrent-ruby (1.3.8)
|
|
38
|
+
connection_pool (3.0.2)
|
|
49
39
|
drb (2.2.3)
|
|
50
|
-
i18n (1.
|
|
40
|
+
i18n (1.15.2)
|
|
51
41
|
concurrent-ruby (~> 1.0)
|
|
52
|
-
|
|
53
|
-
|
|
42
|
+
io-console (0.9.4)
|
|
43
|
+
json (3.0.2)
|
|
44
|
+
language_server-protocol (3.17.0.6)
|
|
54
45
|
lint_roller (1.1.0)
|
|
55
46
|
logger (1.7.0)
|
|
56
47
|
method_source (1.1.0)
|
|
57
|
-
minitest (
|
|
58
|
-
|
|
59
|
-
|
|
48
|
+
minitest (6.0.6)
|
|
49
|
+
drb (~> 2.0)
|
|
50
|
+
prism (~> 1.5)
|
|
51
|
+
parallel (2.3.0)
|
|
52
|
+
parser (3.3.12.0)
|
|
60
53
|
ast (~> 2.4.1)
|
|
61
54
|
racc
|
|
62
|
-
prism (1.
|
|
63
|
-
pry (0.
|
|
55
|
+
prism (1.9.0)
|
|
56
|
+
pry (0.16.0)
|
|
64
57
|
coderay (~> 1.1)
|
|
65
58
|
method_source (~> 1.0)
|
|
59
|
+
reline (>= 0.6.0)
|
|
66
60
|
racc (1.8.1)
|
|
67
|
-
rack (3.2.
|
|
61
|
+
rack (3.2.7)
|
|
68
62
|
rainbow (3.1.1)
|
|
69
|
-
rake (13.
|
|
70
|
-
rbs (
|
|
63
|
+
rake (13.4.2)
|
|
64
|
+
rbs (4.2.0)
|
|
71
65
|
logger
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
66
|
+
prism (>= 1.6.0)
|
|
67
|
+
tsort
|
|
68
|
+
regexp_parser (2.13.1)
|
|
69
|
+
reline (0.7.0)
|
|
70
|
+
io-console (~> 0.5)
|
|
71
|
+
rubocop (1.91.0)
|
|
72
|
+
json (>= 2.3)
|
|
75
73
|
language_server-protocol (~> 3.17.0.2)
|
|
76
74
|
lint_roller (~> 1.1.0)
|
|
77
|
-
parallel (
|
|
75
|
+
parallel (>= 1.10)
|
|
78
76
|
parser (>= 3.3.0.2)
|
|
79
77
|
rainbow (>= 2.2.2, < 4.0)
|
|
80
78
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
81
|
-
rubocop-ast (>= 1.
|
|
79
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
82
80
|
ruby-progressbar (~> 1.7)
|
|
83
81
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
84
|
-
rubocop-ast (1.
|
|
82
|
+
rubocop-ast (1.50.0)
|
|
85
83
|
parser (>= 3.3.7.2)
|
|
86
|
-
prism (~> 1.
|
|
87
|
-
rubocop-capybara (
|
|
84
|
+
prism (~> 1.7)
|
|
85
|
+
rubocop-capybara (3.0.0)
|
|
88
86
|
lint_roller (~> 1.1)
|
|
89
|
-
rubocop (~> 1.
|
|
87
|
+
rubocop (~> 1.81)
|
|
90
88
|
rubocop-factory_bot (2.28.0)
|
|
91
89
|
lint_roller (~> 1.1)
|
|
92
90
|
rubocop (~> 1.72, >= 1.72.1)
|
|
93
|
-
rubocop-on-rbs (
|
|
91
|
+
rubocop-on-rbs (2.2.0)
|
|
94
92
|
lint_roller (~> 1.1)
|
|
95
|
-
rbs (~>
|
|
93
|
+
rbs (~> 4.0)
|
|
96
94
|
rubocop (>= 1.72.1, < 2.0)
|
|
97
|
-
|
|
98
|
-
rubocop-performance (1.26.1)
|
|
95
|
+
rubocop-performance (1.27.0)
|
|
99
96
|
lint_roller (~> 1.1)
|
|
100
|
-
rubocop (>= 1.
|
|
97
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
101
98
|
rubocop-ast (>= 1.47.1, < 2.0)
|
|
102
|
-
rubocop-rails (2.
|
|
99
|
+
rubocop-rails (2.38.0)
|
|
103
100
|
activesupport (>= 4.2.0)
|
|
104
101
|
lint_roller (~> 1.1)
|
|
105
102
|
rack (>= 1.1)
|
|
106
|
-
rubocop (>= 1.
|
|
103
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
107
104
|
rubocop-ast (>= 1.44.0, < 2.0)
|
|
108
105
|
rubocop-rake (0.7.1)
|
|
109
106
|
lint_roller (~> 1.1)
|
|
110
107
|
rubocop (>= 1.72.1)
|
|
111
|
-
rubocop-rspec (3.
|
|
108
|
+
rubocop-rspec (3.10.2)
|
|
112
109
|
lint_roller (~> 1.1)
|
|
113
|
-
|
|
110
|
+
regexp_parser (>= 2.0)
|
|
111
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
114
112
|
rubocop-rspec_rails (2.32.0)
|
|
115
113
|
lint_roller (~> 1.1)
|
|
116
114
|
rubocop (~> 1.72, >= 1.72.1)
|
|
117
115
|
rubocop-rspec (~> 3.5)
|
|
118
|
-
rubocop-thread_safety (0.
|
|
116
|
+
rubocop-thread_safety (0.8.0)
|
|
119
117
|
lint_roller (~> 1.1)
|
|
120
|
-
rubocop (~> 1.
|
|
118
|
+
rubocop (~> 1.89)
|
|
121
119
|
rubocop-ast (>= 1.44.0, < 2.0)
|
|
122
120
|
ruby-progressbar (1.13.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)
|
|
123
126
|
securerandom (0.4.1)
|
|
127
|
+
tsort (0.2.0)
|
|
124
128
|
tzinfo (2.0.6)
|
|
125
129
|
concurrent-ruby (~> 1.0)
|
|
126
|
-
unicode-display_width (3.
|
|
127
|
-
unicode-emoji (~> 4.
|
|
128
|
-
unicode-emoji (4.
|
|
130
|
+
unicode-display_width (3.3.0)
|
|
131
|
+
unicode-emoji (~> 4.3)
|
|
132
|
+
unicode-emoji (4.3.0)
|
|
129
133
|
uri (1.1.1)
|
|
130
|
-
zlib (3.2.2)
|
|
131
134
|
|
|
132
135
|
PLATFORMS
|
|
133
|
-
|
|
136
|
+
aarch64-linux
|
|
137
|
+
arm64-darwin
|
|
134
138
|
ruby
|
|
139
|
+
x86_64-darwin
|
|
140
|
+
x86_64-linux
|
|
135
141
|
|
|
136
142
|
DEPENDENCIES
|
|
137
143
|
armitage-rubocop!
|
|
138
|
-
bundler (
|
|
139
|
-
pry (
|
|
140
|
-
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
|
|
141
200
|
|
|
142
201
|
BUNDLED WITH
|
|
143
|
-
|
|
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
|
@@ -4,9 +4,9 @@ lib = File.expand_path('lib', __dir__)
|
|
|
4
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |spec|
|
|
7
|
-
spec.required_ruby_version = '>=
|
|
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,18 +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.
|
|
30
|
-
spec.add_dependency 'rubocop-rspec', '= 3.
|
|
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
|
+
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
|
-
spec.add_dependency 'rubocop-capybara', '=
|
|
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', '=
|
|
36
|
-
spec.add_dependency 'rubocop-thread_safety', '= 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'
|
|
37
38
|
|
|
38
|
-
spec.add_development_dependency 'bundler',
|
|
39
|
-
spec.add_development_dependency 'rake',
|
|
40
|
-
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'
|
|
41
42
|
end
|
data/lib/common/layout.yml
CHANGED
|
@@ -28,7 +28,6 @@ Layout/ParameterAlignment:
|
|
|
28
28
|
Layout/BeginEndAlignment:
|
|
29
29
|
Enabled: true
|
|
30
30
|
EnforcedStyleAlignWith: start_of_line
|
|
31
|
-
Severity: warning
|
|
32
31
|
|
|
33
32
|
Lint/RequireRelativeSelfPath:
|
|
34
33
|
Enabled: true
|
|
@@ -57,13 +56,23 @@ Layout/ClassStructure:
|
|
|
57
56
|
- include
|
|
58
57
|
- prepend
|
|
59
58
|
- extend
|
|
59
|
+
attribute_macros:
|
|
60
|
+
- attr_reader
|
|
61
|
+
- attr_writer
|
|
62
|
+
- attr_accessor
|
|
60
63
|
ExpectedOrder:
|
|
61
64
|
- module_inclusion
|
|
62
65
|
- constants
|
|
66
|
+
- public_attribute_macros
|
|
67
|
+
- public_delegate
|
|
68
|
+
- macros
|
|
63
69
|
- public_class_methods
|
|
64
70
|
- initializer
|
|
65
71
|
- public_methods
|
|
72
|
+
- protected_attribute_macros
|
|
66
73
|
- protected_methods
|
|
74
|
+
- private_attribute_macros
|
|
75
|
+
- private_delegate
|
|
67
76
|
- private_methods
|
|
68
77
|
|
|
69
78
|
Layout/ClosingHeredocIndentation:
|
|
@@ -80,11 +89,13 @@ Layout/ConditionPosition:
|
|
|
80
89
|
Enabled: true
|
|
81
90
|
AutoCorrect: true
|
|
82
91
|
|
|
92
|
+
Lint/DeprecatedReference:
|
|
93
|
+
Enabled: true
|
|
94
|
+
|
|
83
95
|
Layout/DefEndAlignment:
|
|
84
96
|
Enabled: true
|
|
85
97
|
EnforcedStyleAlignWith: start_of_line
|
|
86
98
|
AutoCorrect: false
|
|
87
|
-
Severity: warning
|
|
88
99
|
|
|
89
100
|
Layout/DotPosition:
|
|
90
101
|
Enabled: true
|
|
@@ -106,6 +117,7 @@ Layout/EmptyLineAfterGuardClause:
|
|
|
106
117
|
|
|
107
118
|
Layout/EmptyLineAfterMagicComment:
|
|
108
119
|
Enabled: true
|
|
120
|
+
NumberOfEmptyLines: 1
|
|
109
121
|
|
|
110
122
|
Layout/EmptyLineAfterMultilineCondition:
|
|
111
123
|
Enabled: false
|
|
@@ -162,7 +174,6 @@ Layout/EndAlignment:
|
|
|
162
174
|
Enabled: true
|
|
163
175
|
EnforcedStyleAlignWith: keyword
|
|
164
176
|
AutoCorrect: false
|
|
165
|
-
Severity: warning
|
|
166
177
|
|
|
167
178
|
Layout/EndOfLine:
|
|
168
179
|
Enabled: true
|
|
@@ -233,6 +244,7 @@ Layout/LeadingEmptyLines:
|
|
|
233
244
|
|
|
234
245
|
Layout/LeadingCommentSpace:
|
|
235
246
|
Enabled: true
|
|
247
|
+
AllowYARDCommentBlockSeparator: true
|
|
236
248
|
AllowDoxygenCommentStyle: false
|
|
237
249
|
AllowGemfileRubyComment: true
|
|
238
250
|
AllowRBSInlineAnnotation: true
|
|
@@ -252,16 +264,18 @@ Layout/LineLength:
|
|
|
252
264
|
Enabled: true
|
|
253
265
|
AutoCorrect: true
|
|
254
266
|
Max: 100
|
|
255
|
-
AllowHeredoc: true
|
|
256
|
-
AllowURI: true
|
|
257
267
|
URISchemes:
|
|
258
268
|
- http
|
|
259
269
|
- https
|
|
260
|
-
IgnoreCopDirectives: false
|
|
261
|
-
AllowedPatterns: []
|
|
262
270
|
Exclude:
|
|
263
271
|
- Gemfile
|
|
264
272
|
SplitStrings: false
|
|
273
|
+
AllowedPatterns: []
|
|
274
|
+
AllowRBSInlineAnnotation: true
|
|
275
|
+
AllowCopDirectives: true
|
|
276
|
+
AllowQualifiedName: true
|
|
277
|
+
AllowHeredoc: true
|
|
278
|
+
AllowURI: true
|
|
265
279
|
|
|
266
280
|
Layout/MultilineMethodParameterLineBreaks:
|
|
267
281
|
Enabled: true
|
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
|
|
|
@@ -59,6 +65,9 @@ Lint/ConstantResolution:
|
|
|
59
65
|
Only: []
|
|
60
66
|
Ignore: []
|
|
61
67
|
|
|
68
|
+
Lint/DataDefineOverride:
|
|
69
|
+
Enabled: true
|
|
70
|
+
|
|
62
71
|
Lint/Debugger:
|
|
63
72
|
Enabled: true
|
|
64
73
|
|
|
@@ -95,6 +104,7 @@ Lint/DuplicateCaseCondition:
|
|
|
95
104
|
|
|
96
105
|
Lint/DuplicateMethods:
|
|
97
106
|
Enabled: true
|
|
107
|
+
AllowedCrossFilePaths: []
|
|
98
108
|
|
|
99
109
|
Lint/DuplicateHashKey:
|
|
100
110
|
Enabled: true
|
|
@@ -241,6 +251,9 @@ Lint/Loop:
|
|
|
241
251
|
Enabled: true
|
|
242
252
|
AutoCorrect: true
|
|
243
253
|
|
|
254
|
+
Lint/MisplacedMagicComment:
|
|
255
|
+
Enabled: true
|
|
256
|
+
|
|
244
257
|
Lint/MissingCopEnableDirective:
|
|
245
258
|
Enabled: true
|
|
246
259
|
|
|
@@ -257,6 +270,9 @@ Lint/MissingSuper:
|
|
|
257
270
|
Lint/MultipleComparison:
|
|
258
271
|
Enabled: true
|
|
259
272
|
|
|
273
|
+
Lint/NameTypo:
|
|
274
|
+
Enabled: true
|
|
275
|
+
|
|
260
276
|
Lint/NestedMethodDefinition:
|
|
261
277
|
Enabled: true
|
|
262
278
|
|
|
@@ -453,6 +469,9 @@ Lint/UnmodifiedReduceAccumulator:
|
|
|
453
469
|
Lint/UnifiedInteger:
|
|
454
470
|
Enabled: true
|
|
455
471
|
|
|
472
|
+
Lint/UnreachablePatternBranch:
|
|
473
|
+
Enabled: true
|
|
474
|
+
|
|
456
475
|
Lint/UnreachableLoop:
|
|
457
476
|
Enabled: true
|
|
458
477
|
|
|
@@ -472,6 +491,11 @@ Lint/RedundantSplatExpansion:
|
|
|
472
491
|
Lint/UnreachableCode:
|
|
473
492
|
Enabled: true
|
|
474
493
|
|
|
494
|
+
Lint/UnusedPrivateMethod:
|
|
495
|
+
Enabled: true
|
|
496
|
+
AllowedNames: []
|
|
497
|
+
AllowedPatterns: []
|
|
498
|
+
|
|
475
499
|
Lint/UnusedBlockArgument:
|
|
476
500
|
Enabled: false
|
|
477
501
|
IgnoreEmptyBlocks: true
|
data/lib/common/rails.yml
CHANGED
|
@@ -140,6 +140,9 @@ Rails/EnumHash:
|
|
|
140
140
|
Include:
|
|
141
141
|
- app/models/**/*.rb
|
|
142
142
|
|
|
143
|
+
Rails/Env:
|
|
144
|
+
Enabled: false
|
|
145
|
+
|
|
143
146
|
Rails/EnvLocal:
|
|
144
147
|
Enabled: true
|
|
145
148
|
|
|
@@ -187,6 +190,9 @@ Rails/HttpPositionalArguments:
|
|
|
187
190
|
Rails/HttpStatus:
|
|
188
191
|
Enabled: false
|
|
189
192
|
|
|
193
|
+
Rails/HttpStatusNameConsistency:
|
|
194
|
+
Enabled: true
|
|
195
|
+
|
|
190
196
|
Rails/I18nLocaleTexts:
|
|
191
197
|
Enabled: false
|
|
192
198
|
|
|
@@ -277,6 +283,9 @@ Rails/RootPublicPath:
|
|
|
277
283
|
Rails/RootJoinChain:
|
|
278
284
|
Enabled: true
|
|
279
285
|
|
|
286
|
+
Rails/RedirectBackOrTo:
|
|
287
|
+
Enabled: true
|
|
288
|
+
|
|
280
289
|
Rails/ReadWriteAttribute:
|
|
281
290
|
Enabled: true
|
|
282
291
|
|
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
|
|
|
@@ -200,6 +203,45 @@ Style/EachForSimpleLoop:
|
|
|
200
203
|
Style/EachWithObject:
|
|
201
204
|
Enabled: true
|
|
202
205
|
|
|
206
|
+
Style/EmptyClassDefinition:
|
|
207
|
+
Enabled: false
|
|
208
|
+
EnforcedStyle: class_keyword
|
|
209
|
+
AllowedParentClasses:
|
|
210
|
+
- NoMemoryError
|
|
211
|
+
- ScriptError
|
|
212
|
+
- LoadError
|
|
213
|
+
- NotImplementedError
|
|
214
|
+
- SyntaxError
|
|
215
|
+
- SecurityError
|
|
216
|
+
- SignalException
|
|
217
|
+
- Interrupt
|
|
218
|
+
- StandardError
|
|
219
|
+
- ArgumentError
|
|
220
|
+
- UncaughtThrowError
|
|
221
|
+
- EncodingError
|
|
222
|
+
- FiberError
|
|
223
|
+
- IOError
|
|
224
|
+
- EOFError
|
|
225
|
+
- IndexError
|
|
226
|
+
- KeyError
|
|
227
|
+
- StopIteration
|
|
228
|
+
- ClosedQueueError
|
|
229
|
+
- LocalJumpError
|
|
230
|
+
- NameError
|
|
231
|
+
- NoMethodError
|
|
232
|
+
- RangeError
|
|
233
|
+
- FloatDomainError
|
|
234
|
+
- RegexpError
|
|
235
|
+
- RuntimeError
|
|
236
|
+
- FrozenError
|
|
237
|
+
- SystemCallError
|
|
238
|
+
- Errno
|
|
239
|
+
- ThreadError
|
|
240
|
+
- TypeError
|
|
241
|
+
- ZeroDivisionError
|
|
242
|
+
- SystemExit
|
|
243
|
+
- SystemStackError
|
|
244
|
+
|
|
203
245
|
Style/EmptyHeredoc:
|
|
204
246
|
Enabled: true
|
|
205
247
|
|
|
@@ -266,6 +308,9 @@ Style/FetchEnvVar:
|
|
|
266
308
|
Enabled: true
|
|
267
309
|
DefaultToNil: true
|
|
268
310
|
|
|
311
|
+
Style/FileOpen:
|
|
312
|
+
Enabled: true
|
|
313
|
+
|
|
269
314
|
Style/FileEmpty:
|
|
270
315
|
Enabled: true
|
|
271
316
|
|
|
@@ -324,6 +369,9 @@ Style/GuardClause:
|
|
|
324
369
|
MinBodyLength: 1
|
|
325
370
|
AllowConsecutiveConditionals: false
|
|
326
371
|
|
|
372
|
+
Style/HashLookupMethod:
|
|
373
|
+
Enabled: false
|
|
374
|
+
|
|
327
375
|
Style/HashAsLastArrayItem:
|
|
328
376
|
Enabled: true
|
|
329
377
|
EnforcedStyle: braces
|
|
@@ -431,6 +479,9 @@ Style/MagicCommentFormat:
|
|
|
431
479
|
DirectiveCapitalization: lowercase
|
|
432
480
|
ValueCapitalization: ~
|
|
433
481
|
|
|
482
|
+
Style/MapJoin:
|
|
483
|
+
Enabled: false # NOTE: unsafe for non-array objects
|
|
484
|
+
|
|
434
485
|
Style/MapIntoArray:
|
|
435
486
|
Enabled: false # NOTE: it is unsafe at the moment
|
|
436
487
|
|
|
@@ -482,6 +533,9 @@ Style/MixinGrouping:
|
|
|
482
533
|
Style/MixinUsage:
|
|
483
534
|
Enabled: true
|
|
484
535
|
|
|
536
|
+
Style/ModuleMemberExistenceCheck:
|
|
537
|
+
Enabled: true
|
|
538
|
+
|
|
485
539
|
Style/ModuleFunction:
|
|
486
540
|
Enabled: false
|
|
487
541
|
|
|
@@ -518,6 +572,9 @@ Style/MultipleComparison:
|
|
|
518
572
|
Style/MutableConstant:
|
|
519
573
|
Enabled: true
|
|
520
574
|
|
|
575
|
+
Style/NegativeArrayIndex:
|
|
576
|
+
Enabled: true
|
|
577
|
+
|
|
521
578
|
Style/NegatedIf:
|
|
522
579
|
Enabled: true
|
|
523
580
|
EnforcedStyle: both
|
|
@@ -593,6 +650,9 @@ Style/ObjectThen:
|
|
|
593
650
|
Enabled: true
|
|
594
651
|
EnforcedStyle: yield_self
|
|
595
652
|
|
|
653
|
+
Style/OneClassPerFile:
|
|
654
|
+
Enabled: true
|
|
655
|
+
|
|
596
656
|
Style/OneLineConditional:
|
|
597
657
|
Enabled: true
|
|
598
658
|
|
|
@@ -613,6 +673,9 @@ Style/OptionalBooleanParameter:
|
|
|
613
673
|
AllowedMethods:
|
|
614
674
|
- respond_to_missing?
|
|
615
675
|
|
|
676
|
+
Style/PartitionInsteadOfDoubleSelect:
|
|
677
|
+
Enabled: false # NOTE: unsafe method names
|
|
678
|
+
|
|
616
679
|
Style/ParallelAssignment:
|
|
617
680
|
Enabled: false
|
|
618
681
|
|
|
@@ -629,6 +692,9 @@ Style/PercentQLiterals:
|
|
|
629
692
|
Style/PerlBackrefs:
|
|
630
693
|
Enabled: true
|
|
631
694
|
|
|
695
|
+
Style/PredicateWithKind:
|
|
696
|
+
Enabled: false
|
|
697
|
+
|
|
632
698
|
Style/PreferredHashMethods:
|
|
633
699
|
Enabled: true
|
|
634
700
|
EnforcedStyle: short
|
|
@@ -644,9 +710,21 @@ Style/RaiseArgs:
|
|
|
644
710
|
Style/RandomWithOffset:
|
|
645
711
|
Enabled: true
|
|
646
712
|
|
|
713
|
+
Style/ReverseFind:
|
|
714
|
+
Enabled: true
|
|
715
|
+
|
|
647
716
|
Style/ReturnNilInPredicateMethodDefinition:
|
|
648
717
|
Enabled: true
|
|
649
718
|
|
|
719
|
+
Style/ReduceToHash:
|
|
720
|
+
Enabled: false
|
|
721
|
+
|
|
722
|
+
Style/RedundantStructKeywordInit:
|
|
723
|
+
Enabled: true
|
|
724
|
+
|
|
725
|
+
Style/RedundantMinMaxBy:
|
|
726
|
+
Enabled: true
|
|
727
|
+
|
|
650
728
|
Style/RedundantArrayFlatten:
|
|
651
729
|
Enabled: true
|
|
652
730
|
|
|
@@ -778,6 +856,18 @@ Style/SendWithLiteralMethodName:
|
|
|
778
856
|
Enabled: true
|
|
779
857
|
AllowSend: true
|
|
780
858
|
|
|
859
|
+
Style/SelectByKind:
|
|
860
|
+
Enabled: false # NOTE: unsafe (receiver can be not an array/enumerable)
|
|
861
|
+
|
|
862
|
+
Style/SelectByRange:
|
|
863
|
+
Enabled: false # NOTE: unsafe (receiver can be not an array/enumerable)
|
|
864
|
+
|
|
865
|
+
Style/TallyMethod:
|
|
866
|
+
Enabled: false # NOTE: unsafe (receiver can be not an array/enumerable)
|
|
867
|
+
|
|
868
|
+
Style/TimeNow:
|
|
869
|
+
Enabled: true
|
|
870
|
+
|
|
781
871
|
Style/SelectByRegexp:
|
|
782
872
|
Enabled: false
|
|
783
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
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
RBS/Layout/AnnotationIndentation:
|
|
2
|
+
Enabled: true
|
|
3
|
+
|
|
1
4
|
RBS/Layout/CommentIndentation:
|
|
2
5
|
Enabled: true
|
|
3
6
|
|
|
@@ -33,6 +36,7 @@ RBS/Layout/ExtraSpacing:
|
|
|
33
36
|
|
|
34
37
|
RBS/Layout/IndentationWidth:
|
|
35
38
|
Enabled: true
|
|
39
|
+
Width: 2
|
|
36
40
|
|
|
37
41
|
RBS/Layout/OverloadIndentation:
|
|
38
42
|
Enabled: true
|
data/lib/rbs/lint.yml
CHANGED
data/lib/rspec/capybara.yml
CHANGED
|
@@ -4,19 +4,9 @@ Capybara/AmbiguousClick:
|
|
|
4
4
|
Capybara/RedundantWithinFind:
|
|
5
5
|
Enabled: true
|
|
6
6
|
|
|
7
|
-
Capybara/CurrentPathExpectation:
|
|
8
|
-
Enabled: true
|
|
9
|
-
|
|
10
|
-
# NOTE: deprecated cop (will be dropped with 3.0 release)
|
|
11
|
-
Capybara/ClickLinkOrButtonStyle:
|
|
12
|
-
Enabled: true
|
|
13
|
-
|
|
14
7
|
Capybara/FindAllFirst:
|
|
15
8
|
Enabled: true
|
|
16
9
|
|
|
17
|
-
Capybara/NegationMatcherAfterVisit:
|
|
18
|
-
Enabled: false
|
|
19
|
-
|
|
20
10
|
Capybara/RSpec/PredicateMatcher:
|
|
21
11
|
Enabled: true
|
|
22
12
|
Strict: true
|
|
@@ -25,20 +15,32 @@ Capybara/RSpec/PredicateMatcher:
|
|
|
25
15
|
Capybara/RSpec/HaveSelector:
|
|
26
16
|
Enabled: false
|
|
27
17
|
|
|
28
|
-
Capybara/
|
|
18
|
+
Capybara/SpecificFinders:
|
|
19
|
+
Enabled: false
|
|
20
|
+
|
|
21
|
+
Capybara/SpecificActions:
|
|
22
|
+
Enabled: true
|
|
23
|
+
|
|
24
|
+
Capybara/RSpec/HaveContent:
|
|
25
|
+
Enabled: true
|
|
26
|
+
|
|
27
|
+
Capybara/RSpec/CurrentPathExpectation:
|
|
29
28
|
Enabled: true
|
|
30
29
|
|
|
31
|
-
Capybara/SpecificMatcher:
|
|
30
|
+
Capybara/RSpec/SpecificMatcher:
|
|
32
31
|
Enabled: false
|
|
33
32
|
|
|
34
|
-
Capybara/
|
|
33
|
+
Capybara/RSpec/NegationMatcher:
|
|
35
34
|
Enabled: false
|
|
36
35
|
|
|
37
|
-
Capybara/
|
|
36
|
+
Capybara/RSpec/NegationMatcherAfterVisit:
|
|
38
37
|
Enabled: false
|
|
39
38
|
|
|
40
|
-
Capybara/
|
|
39
|
+
Capybara/RSpec/VisibilityMatcher:
|
|
40
|
+
Enabled: true
|
|
41
|
+
|
|
42
|
+
Capybara/AssertStyle:
|
|
41
43
|
Enabled: true
|
|
42
44
|
|
|
43
|
-
Capybara/MatchStyle:
|
|
45
|
+
Capybara/RSpec/MatchStyle:
|
|
44
46
|
Enabled: true
|
data/lib/rspec/rspec.yml
CHANGED
|
@@ -39,6 +39,9 @@ RSpec/ContextMethod:
|
|
|
39
39
|
RSpec/ContextWording:
|
|
40
40
|
Enabled: false
|
|
41
41
|
|
|
42
|
+
RSpec/DiscardedMatcher:
|
|
43
|
+
Enabled: true
|
|
44
|
+
|
|
42
45
|
RSpec/DuplicatedMetadata:
|
|
43
46
|
Enabled: true
|
|
44
47
|
|
|
@@ -193,6 +196,9 @@ RSpec/LetBeforeExamples:
|
|
|
193
196
|
RSpec/LetSetup:
|
|
194
197
|
Enabled: false
|
|
195
198
|
|
|
199
|
+
RSpec/MatchWithSimpleRegex:
|
|
200
|
+
Enabled: true
|
|
201
|
+
|
|
196
202
|
RSpec/MatchArray:
|
|
197
203
|
Enabled: false
|
|
198
204
|
|
|
@@ -244,6 +250,9 @@ RSpec/NotToNot:
|
|
|
244
250
|
RSpec/OverwritingSetup:
|
|
245
251
|
Enabled: true
|
|
246
252
|
|
|
253
|
+
RSpec/Output:
|
|
254
|
+
Enabled: false
|
|
255
|
+
|
|
247
256
|
RSpec/Pending:
|
|
248
257
|
Enabled: false
|
|
249
258
|
|
data/lib/rubocop.general.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,56 +15,56 @@ 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
|
|
57
57
|
requirements:
|
|
58
58
|
- - '='
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 3.
|
|
60
|
+
version: 3.10.2
|
|
61
61
|
type: :runtime
|
|
62
62
|
prerelease: false
|
|
63
63
|
version_requirements: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - '='
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: 3.
|
|
67
|
+
version: 3.10.2
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: rubocop-rspec_rails
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -99,14 +99,14 @@ dependencies:
|
|
|
99
99
|
requirements:
|
|
100
100
|
- - '='
|
|
101
101
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
102
|
+
version: 3.0.0
|
|
103
103
|
type: :runtime
|
|
104
104
|
prerelease: false
|
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
|
106
106
|
requirements:
|
|
107
107
|
- - '='
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version:
|
|
109
|
+
version: 3.0.0
|
|
110
110
|
- !ruby/object:Gem::Dependency
|
|
111
111
|
name: rubocop-factory_bot
|
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -127,70 +127,84 @@ dependencies:
|
|
|
127
127
|
requirements:
|
|
128
128
|
- - '='
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
|
-
version:
|
|
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:
|
|
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
|
+
- !ruby/object:Gem::Dependency
|
|
153
|
+
name: rubydex
|
|
154
|
+
requirement: !ruby/object:Gem::Requirement
|
|
155
|
+
requirements:
|
|
156
|
+
- - '='
|
|
157
|
+
- !ruby/object:Gem::Version
|
|
158
|
+
version: 0.4.1
|
|
159
|
+
type: :runtime
|
|
160
|
+
prerelease: false
|
|
161
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
162
|
+
requirements:
|
|
163
|
+
- - '='
|
|
164
|
+
- !ruby/object:Gem::Version
|
|
165
|
+
version: 0.4.1
|
|
152
166
|
- !ruby/object:Gem::Dependency
|
|
153
167
|
name: bundler
|
|
154
168
|
requirement: !ruby/object:Gem::Requirement
|
|
155
169
|
requirements:
|
|
156
|
-
- -
|
|
170
|
+
- - '='
|
|
157
171
|
- !ruby/object:Gem::Version
|
|
158
|
-
version:
|
|
172
|
+
version: 4.0.22
|
|
159
173
|
type: :development
|
|
160
174
|
prerelease: false
|
|
161
175
|
version_requirements: !ruby/object:Gem::Requirement
|
|
162
176
|
requirements:
|
|
163
|
-
- -
|
|
177
|
+
- - '='
|
|
164
178
|
- !ruby/object:Gem::Version
|
|
165
|
-
version:
|
|
179
|
+
version: 4.0.22
|
|
166
180
|
- !ruby/object:Gem::Dependency
|
|
167
181
|
name: rake
|
|
168
182
|
requirement: !ruby/object:Gem::Requirement
|
|
169
183
|
requirements:
|
|
170
|
-
- -
|
|
184
|
+
- - '='
|
|
171
185
|
- !ruby/object:Gem::Version
|
|
172
|
-
version:
|
|
186
|
+
version: 13.4.2
|
|
173
187
|
type: :development
|
|
174
188
|
prerelease: false
|
|
175
189
|
version_requirements: !ruby/object:Gem::Requirement
|
|
176
190
|
requirements:
|
|
177
|
-
- -
|
|
191
|
+
- - '='
|
|
178
192
|
- !ruby/object:Gem::Version
|
|
179
|
-
version:
|
|
193
|
+
version: 13.4.2
|
|
180
194
|
- !ruby/object:Gem::Dependency
|
|
181
195
|
name: pry
|
|
182
196
|
requirement: !ruby/object:Gem::Requirement
|
|
183
197
|
requirements:
|
|
184
|
-
- -
|
|
198
|
+
- - '='
|
|
185
199
|
- !ruby/object:Gem::Version
|
|
186
|
-
version:
|
|
200
|
+
version: 0.16.0
|
|
187
201
|
type: :development
|
|
188
202
|
prerelease: false
|
|
189
203
|
version_requirements: !ruby/object:Gem::Requirement
|
|
190
204
|
requirements:
|
|
191
|
-
- -
|
|
205
|
+
- - '='
|
|
192
206
|
- !ruby/object:Gem::Version
|
|
193
|
-
version:
|
|
207
|
+
version: 0.16.0
|
|
194
208
|
description: 'A set of rubocop settings used in my own projects.Support for: vanilla
|
|
195
209
|
ruby, rspec, rails.'
|
|
196
210
|
email:
|
|
@@ -223,6 +237,8 @@ files:
|
|
|
223
237
|
- lib/common/security.yml
|
|
224
238
|
- lib/common/style.yml
|
|
225
239
|
- lib/common/thread_safety.yml
|
|
240
|
+
- lib/rbs/inline_lint.yml
|
|
241
|
+
- lib/rbs/inline_style.yml
|
|
226
242
|
- lib/rbs/layout.yml
|
|
227
243
|
- lib/rbs/lint.yml
|
|
228
244
|
- lib/rbs/style.yml
|
|
@@ -246,14 +262,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
246
262
|
requirements:
|
|
247
263
|
- - ">="
|
|
248
264
|
- !ruby/object:Gem::Version
|
|
249
|
-
version: '
|
|
265
|
+
version: '4.0'
|
|
250
266
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
251
267
|
requirements:
|
|
252
268
|
- - ">="
|
|
253
269
|
- !ruby/object:Gem::Version
|
|
254
270
|
version: '0'
|
|
255
271
|
requirements: []
|
|
256
|
-
rubygems_version:
|
|
272
|
+
rubygems_version: 4.0.22
|
|
257
273
|
specification_version: 4
|
|
258
274
|
summary: A set of rubocop settings
|
|
259
275
|
test_files: []
|