armitage-rubocop 1.75.7.6 → 1.81.7.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 +54 -39
- data/LICENSE.txt +1 -1
- data/README.md +7 -0
- data/Rakefile +3 -1
- data/armitage-rubocop.gemspec +11 -10
- data/lib/common/gemspec.yml +5 -0
- data/lib/common/layout.yml +3 -0
- data/lib/common/lint.yml +13 -0
- data/lib/common/naming.yml +8 -1
- data/lib/common/rails.yml +6 -0
- data/lib/common/style.yml +17 -2
- data/lib/common/thread_safety.yml +47 -0
- data/lib/rbs/lint.yml +6 -0
- data/lib/rspec/rails.yml +3 -0
- data/lib/rspec/rspec.yml +3 -0
- data/lib/rubocop.general.yml +4 -1
- data/lib/rubocop.rbs.yml +1 -0
- metadata +31 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: '0388d6a056a5183052624bafcbfa3501502c2347d85b1711a99a8505a11a225b'
|
|
4
|
+
data.tar.gz: a36bc43c295d4df53328d423f03ca8f788e2aef22612c5cab74beb27f8c57fc1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 989722cb55f92dabe07c69eacc44893ded46f9e946f3ae6f7baca9e8a3b37e72154b97a72696121d82629988153008d4c4bfa1adcd4eeac5829d7cf206ef45e1
|
|
7
|
+
data.tar.gz: 944c7ec310d1df16ecb2b0567047155951dbd0e61e722157d761a550360ac43ca5a0e0902f1e704ccc2c23b7678d0e4ee7d2cbcc5882b131ae74bf333c4ddcc3
|
data/Gemfile.lock
CHANGED
|
@@ -1,65 +1,76 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
armitage-rubocop (1.
|
|
5
|
-
rubocop (= 1.
|
|
4
|
+
armitage-rubocop (1.81.7)
|
|
5
|
+
rubocop (= 1.81.7)
|
|
6
6
|
rubocop-capybara (= 2.22.1)
|
|
7
|
-
rubocop-factory_bot (= 2.
|
|
8
|
-
rubocop-on-rbs (= 1.
|
|
9
|
-
rubocop-performance (= 1.
|
|
10
|
-
rubocop-rails (= 2.
|
|
7
|
+
rubocop-factory_bot (= 2.28.0)
|
|
8
|
+
rubocop-on-rbs (= 1.8.0)
|
|
9
|
+
rubocop-performance (= 1.26.1)
|
|
10
|
+
rubocop-rails (= 2.33.4)
|
|
11
11
|
rubocop-rake (= 0.7.1)
|
|
12
|
-
rubocop-rspec (= 3.
|
|
13
|
-
rubocop-rspec_rails (= 2.
|
|
12
|
+
rubocop-rspec (= 3.8.0)
|
|
13
|
+
rubocop-rspec_rails (= 2.32.0)
|
|
14
|
+
rubocop-thread_safety (= 0.7.3)
|
|
15
|
+
armitage-rubocop (1.81.7.0)
|
|
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
26
|
|
|
15
27
|
GEM
|
|
16
28
|
remote: https://rubygems.org/
|
|
17
29
|
specs:
|
|
18
|
-
activesupport (8.
|
|
30
|
+
activesupport (8.1.1)
|
|
19
31
|
base64
|
|
20
|
-
benchmark (>= 0.3)
|
|
21
32
|
bigdecimal
|
|
22
33
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
23
34
|
connection_pool (>= 2.2.5)
|
|
24
35
|
drb
|
|
25
36
|
i18n (>= 1.6, < 2)
|
|
37
|
+
json
|
|
26
38
|
logger (>= 1.4.2)
|
|
27
39
|
minitest (>= 5.1)
|
|
28
40
|
securerandom (>= 0.3)
|
|
29
41
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
30
42
|
uri (>= 0.13.1)
|
|
31
43
|
ast (2.4.3)
|
|
32
|
-
base64 (0.
|
|
33
|
-
|
|
34
|
-
bigdecimal (3.1.9)
|
|
44
|
+
base64 (0.3.0)
|
|
45
|
+
bigdecimal (3.3.1)
|
|
35
46
|
coderay (1.1.3)
|
|
36
47
|
concurrent-ruby (1.3.5)
|
|
37
|
-
connection_pool (2.5.
|
|
48
|
+
connection_pool (2.5.4)
|
|
38
49
|
drb (2.2.3)
|
|
39
50
|
i18n (1.14.7)
|
|
40
51
|
concurrent-ruby (~> 1.0)
|
|
41
|
-
json (2.
|
|
52
|
+
json (2.16.0)
|
|
42
53
|
language_server-protocol (3.17.0.5)
|
|
43
54
|
lint_roller (1.1.0)
|
|
44
55
|
logger (1.7.0)
|
|
45
56
|
method_source (1.1.0)
|
|
46
|
-
minitest (5.
|
|
57
|
+
minitest (5.26.1)
|
|
47
58
|
parallel (1.27.0)
|
|
48
|
-
parser (3.3.
|
|
59
|
+
parser (3.3.10.0)
|
|
49
60
|
ast (~> 2.4.1)
|
|
50
61
|
racc
|
|
51
|
-
prism (1.
|
|
62
|
+
prism (1.6.0)
|
|
52
63
|
pry (0.15.2)
|
|
53
64
|
coderay (~> 1.1)
|
|
54
65
|
method_source (~> 1.0)
|
|
55
66
|
racc (1.8.1)
|
|
56
|
-
rack (3.
|
|
67
|
+
rack (3.2.4)
|
|
57
68
|
rainbow (3.1.1)
|
|
58
|
-
rake (13.
|
|
59
|
-
rbs (3.9.
|
|
69
|
+
rake (13.3.1)
|
|
70
|
+
rbs (3.9.5)
|
|
60
71
|
logger
|
|
61
|
-
regexp_parser (2.
|
|
62
|
-
rubocop (1.
|
|
72
|
+
regexp_parser (2.11.3)
|
|
73
|
+
rubocop (1.81.7)
|
|
63
74
|
json (~> 2.3)
|
|
64
75
|
language_server-protocol (~> 3.17.0.2)
|
|
65
76
|
lint_roller (~> 1.1.0)
|
|
@@ -67,28 +78,28 @@ GEM
|
|
|
67
78
|
parser (>= 3.3.0.2)
|
|
68
79
|
rainbow (>= 2.2.2, < 4.0)
|
|
69
80
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
70
|
-
rubocop-ast (>= 1.
|
|
81
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
71
82
|
ruby-progressbar (~> 1.7)
|
|
72
83
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
73
|
-
rubocop-ast (1.
|
|
84
|
+
rubocop-ast (1.48.0)
|
|
74
85
|
parser (>= 3.3.7.2)
|
|
75
86
|
prism (~> 1.4)
|
|
76
87
|
rubocop-capybara (2.22.1)
|
|
77
88
|
lint_roller (~> 1.1)
|
|
78
89
|
rubocop (~> 1.72, >= 1.72.1)
|
|
79
|
-
rubocop-factory_bot (2.
|
|
90
|
+
rubocop-factory_bot (2.28.0)
|
|
80
91
|
lint_roller (~> 1.1)
|
|
81
92
|
rubocop (~> 1.72, >= 1.72.1)
|
|
82
|
-
rubocop-on-rbs (1.
|
|
93
|
+
rubocop-on-rbs (1.8.0)
|
|
83
94
|
lint_roller (~> 1.1)
|
|
84
95
|
rbs (~> 3.5)
|
|
85
96
|
rubocop (>= 1.72.1, < 2.0)
|
|
86
97
|
zlib
|
|
87
|
-
rubocop-performance (1.
|
|
98
|
+
rubocop-performance (1.26.1)
|
|
88
99
|
lint_roller (~> 1.1)
|
|
89
100
|
rubocop (>= 1.75.0, < 2.0)
|
|
90
|
-
rubocop-ast (>= 1.
|
|
91
|
-
rubocop-rails (2.
|
|
101
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
102
|
+
rubocop-rails (2.33.4)
|
|
92
103
|
activesupport (>= 4.2.0)
|
|
93
104
|
lint_roller (~> 1.1)
|
|
94
105
|
rack (>= 1.1)
|
|
@@ -97,22 +108,26 @@ GEM
|
|
|
97
108
|
rubocop-rake (0.7.1)
|
|
98
109
|
lint_roller (~> 1.1)
|
|
99
110
|
rubocop (>= 1.72.1)
|
|
100
|
-
rubocop-rspec (3.
|
|
111
|
+
rubocop-rspec (3.8.0)
|
|
101
112
|
lint_roller (~> 1.1)
|
|
102
|
-
rubocop (~> 1.
|
|
103
|
-
rubocop-rspec_rails (2.
|
|
113
|
+
rubocop (~> 1.81)
|
|
114
|
+
rubocop-rspec_rails (2.32.0)
|
|
104
115
|
lint_roller (~> 1.1)
|
|
105
116
|
rubocop (~> 1.72, >= 1.72.1)
|
|
106
117
|
rubocop-rspec (~> 3.5)
|
|
118
|
+
rubocop-thread_safety (0.7.3)
|
|
119
|
+
lint_roller (~> 1.1)
|
|
120
|
+
rubocop (~> 1.72, >= 1.72.1)
|
|
121
|
+
rubocop-ast (>= 1.44.0, < 2.0)
|
|
107
122
|
ruby-progressbar (1.13.0)
|
|
108
123
|
securerandom (0.4.1)
|
|
109
124
|
tzinfo (2.0.6)
|
|
110
125
|
concurrent-ruby (~> 1.0)
|
|
111
|
-
unicode-display_width (3.
|
|
112
|
-
unicode-emoji (~> 4.
|
|
113
|
-
unicode-emoji (4.0
|
|
114
|
-
uri (1.
|
|
115
|
-
zlib (3.2.
|
|
126
|
+
unicode-display_width (3.2.0)
|
|
127
|
+
unicode-emoji (~> 4.1)
|
|
128
|
+
unicode-emoji (4.1.0)
|
|
129
|
+
uri (1.1.1)
|
|
130
|
+
zlib (3.2.2)
|
|
116
131
|
|
|
117
132
|
PLATFORMS
|
|
118
133
|
arm64-darwin-24
|
|
@@ -125,4 +140,4 @@ DEPENDENCIES
|
|
|
125
140
|
rake (~> 13.1)
|
|
126
141
|
|
|
127
142
|
BUNDLED WITH
|
|
128
|
-
2.6.
|
|
143
|
+
2.6.9
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2018-
|
|
3
|
+
Copyright (c) 2018-2025 Rustam Ibragimov
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
data/README.md
CHANGED
|
@@ -63,6 +63,13 @@ inherit_gem:
|
|
|
63
63
|
- lib/rubocop.rspec.yml
|
|
64
64
|
- lib/rubocop.rake.yml
|
|
65
65
|
- lib/rubocop.rbs.yml # NOTE: if you use RBS
|
|
66
|
+
|
|
67
|
+
# NOTE: (!for RBS file inclusion!)
|
|
68
|
+
# - add your rbs files location to <AllCops:Include:> directly
|
|
69
|
+
# cuz `RBS` department has no working `Include` option at the moment :dunno-why:
|
|
70
|
+
AllCops:
|
|
71
|
+
Include:
|
|
72
|
+
- "**/*.rbs" # add your path our use this global default
|
|
66
73
|
```
|
|
67
74
|
|
|
68
75
|
```yaml
|
data/Rakefile
CHANGED
|
@@ -13,6 +13,7 @@ require 'rubocop-rake'
|
|
|
13
13
|
require 'rubocop-capybara'
|
|
14
14
|
require 'rubocop-factory_bot'
|
|
15
15
|
require 'rubocop-on-rbs'
|
|
16
|
+
require 'rubocop-thread_safety'
|
|
16
17
|
|
|
17
18
|
RuboCop::RakeTask.new(:rubocop) do |t|
|
|
18
19
|
config_path = File.expand_path(File.join('.rubocop.yml'), __dir__)
|
|
@@ -25,7 +26,8 @@ RuboCop::RakeTask.new(:rubocop) do |t|
|
|
|
25
26
|
'--plugin', 'rubocop-rake',
|
|
26
27
|
'--plugin', 'rubocop-capybara',
|
|
27
28
|
'--plugin', 'rubocop-factory_bot',
|
|
28
|
-
'--plugin', 'rubocop-on-rbs'
|
|
29
|
+
'--plugin', 'rubocop-on-rbs',
|
|
30
|
+
'--plugin', 'rubocop-thread_safety'
|
|
29
31
|
]
|
|
30
32
|
end
|
|
31
33
|
|
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 = '>= 3.3'
|
|
8
8
|
|
|
9
|
-
spec.version = '1.
|
|
9
|
+
spec.version = '1.81.7.0'
|
|
10
10
|
|
|
11
11
|
spec.name = 'armitage-rubocop'
|
|
12
12
|
spec.license = 'MIT'
|
|
@@ -24,15 +24,16 @@ 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',
|
|
28
|
-
spec.add_dependency 'rubocop-performance',
|
|
29
|
-
spec.add_dependency 'rubocop-rails',
|
|
30
|
-
spec.add_dependency 'rubocop-rspec',
|
|
31
|
-
spec.add_dependency 'rubocop-rspec_rails',
|
|
32
|
-
spec.add_dependency 'rubocop-rake',
|
|
33
|
-
spec.add_dependency 'rubocop-capybara',
|
|
34
|
-
spec.add_dependency 'rubocop-factory_bot',
|
|
35
|
-
spec.add_dependency 'rubocop-on-rbs',
|
|
27
|
+
spec.add_dependency 'rubocop', '= 1.81.7'
|
|
28
|
+
spec.add_dependency 'rubocop-performance', '= 1.26.1'
|
|
29
|
+
spec.add_dependency 'rubocop-rails', '= 2.33.4'
|
|
30
|
+
spec.add_dependency 'rubocop-rspec', '= 3.8.0'
|
|
31
|
+
spec.add_dependency 'rubocop-rspec_rails', '= 2.32.0'
|
|
32
|
+
spec.add_dependency 'rubocop-rake', '= 0.7.1'
|
|
33
|
+
spec.add_dependency 'rubocop-capybara', '= 2.22.1'
|
|
34
|
+
spec.add_dependency 'rubocop-factory_bot', '= 2.28.0'
|
|
35
|
+
spec.add_dependency 'rubocop-on-rbs', '= 1.8.0'
|
|
36
|
+
spec.add_dependency 'rubocop-thread_safety', '= 0.7.3'
|
|
36
37
|
|
|
37
38
|
spec.add_development_dependency 'bundler', '~> 2.3'
|
|
38
39
|
spec.add_development_dependency 'rake', '~> 13.1'
|
data/lib/common/gemspec.yml
CHANGED
data/lib/common/layout.yml
CHANGED
data/lib/common/lint.yml
CHANGED
|
@@ -303,6 +303,13 @@ Lint/PercentStringArray:
|
|
|
303
303
|
Lint/PercentSymbolArray:
|
|
304
304
|
Enabled: true
|
|
305
305
|
|
|
306
|
+
Lint/UselessOr:
|
|
307
|
+
Enabled: true
|
|
308
|
+
|
|
309
|
+
Lint/UselessDefaultValueArgument:
|
|
310
|
+
Enabled: true
|
|
311
|
+
AllowedReceivers: ['Rails.cache']
|
|
312
|
+
|
|
306
313
|
Lint/UselessDefined:
|
|
307
314
|
Enabled: true
|
|
308
315
|
|
|
@@ -341,6 +348,12 @@ Lint/RefinementImportMethods:
|
|
|
341
348
|
|
|
342
349
|
Lint/RedundantSafeNavigation:
|
|
343
350
|
Enabled: true
|
|
351
|
+
InferNonNilReceiver: false
|
|
352
|
+
AdditionalNilMethods:
|
|
353
|
+
- present?
|
|
354
|
+
- blank?
|
|
355
|
+
- try
|
|
356
|
+
- try!
|
|
344
357
|
AllowedMethods:
|
|
345
358
|
- instance_of?
|
|
346
359
|
- kind_of?
|
data/lib/common/naming.yml
CHANGED
|
@@ -45,7 +45,14 @@ Naming/MethodName:
|
|
|
45
45
|
- def
|
|
46
46
|
- super
|
|
47
47
|
|
|
48
|
-
Naming/
|
|
48
|
+
Naming/PredicateMethod:
|
|
49
|
+
Enabled: true
|
|
50
|
+
Mode: conservative
|
|
51
|
+
AllowedMethods: call
|
|
52
|
+
AllowBangMethods: false
|
|
53
|
+
AllowedPatterns: []
|
|
54
|
+
|
|
55
|
+
Naming/PredicatePrefix:
|
|
49
56
|
Enabled: false
|
|
50
57
|
|
|
51
58
|
Naming/RescuedExceptionsVariableName:
|
data/lib/common/rails.yml
CHANGED
|
@@ -157,6 +157,9 @@ Rails/EnvironmentComparison:
|
|
|
157
157
|
Rails/Exit:
|
|
158
158
|
Enabled: true
|
|
159
159
|
|
|
160
|
+
Rails/FindByOrAssignmentMemoization:
|
|
161
|
+
Enabled: false
|
|
162
|
+
|
|
160
163
|
Rails/FilePath:
|
|
161
164
|
Enabled: true
|
|
162
165
|
EnforcedStyle: arguments
|
|
@@ -237,6 +240,9 @@ Rails/NotNullColumn:
|
|
|
237
240
|
Rails/OrderById:
|
|
238
241
|
Enabled: false
|
|
239
242
|
|
|
243
|
+
Rails/OrderArguments:
|
|
244
|
+
Enabled: false
|
|
245
|
+
|
|
240
246
|
Rails/Output:
|
|
241
247
|
Enabled: true
|
|
242
248
|
|
data/lib/common/style.yml
CHANGED
|
@@ -20,6 +20,9 @@ Style/AndOr:
|
|
|
20
20
|
Enabled: false
|
|
21
21
|
EnforcedStyle: always
|
|
22
22
|
|
|
23
|
+
Style/ArrayIntersectWithSingleElement:
|
|
24
|
+
Enabled: true
|
|
25
|
+
|
|
23
26
|
Style/ArrayFirstLast:
|
|
24
27
|
Enabled: false
|
|
25
28
|
|
|
@@ -108,6 +111,9 @@ Style/ClassVars:
|
|
|
108
111
|
Style/ConcatArrayLiterals:
|
|
109
112
|
Enabled: false # NOTE: it is totally unsafe
|
|
110
113
|
|
|
114
|
+
Style/CollectionQuerying:
|
|
115
|
+
Enabled: false # TODO: may be set to true
|
|
116
|
+
|
|
111
117
|
Style/CollectionCompact:
|
|
112
118
|
Enabled: true
|
|
113
119
|
|
|
@@ -218,6 +224,10 @@ Style/EmptyMethod:
|
|
|
218
224
|
Enabled: true
|
|
219
225
|
EnforcedStyle: compact
|
|
220
226
|
|
|
227
|
+
Style/EmptyStringInsideInterpolation:
|
|
228
|
+
Enabled: true
|
|
229
|
+
EnforcedStyle: trailing_conditional
|
|
230
|
+
|
|
221
231
|
Style/EndlessMethod:
|
|
222
232
|
Enabled: true
|
|
223
233
|
EnforcedStyle: allow_single_line
|
|
@@ -254,6 +264,7 @@ Style/ExplicitBlockArgument:
|
|
|
254
264
|
|
|
255
265
|
Style/FetchEnvVar:
|
|
256
266
|
Enabled: true
|
|
267
|
+
DefaultToNil: true
|
|
257
268
|
|
|
258
269
|
Style/FileEmpty:
|
|
259
270
|
Enabled: true
|
|
@@ -555,11 +566,12 @@ Style/Not:
|
|
|
555
566
|
Enabled: true
|
|
556
567
|
|
|
557
568
|
Style/NumberedParameters:
|
|
558
|
-
Enabled:
|
|
569
|
+
Enabled: true
|
|
570
|
+
EnforcedStyle: allow_single_line
|
|
559
571
|
|
|
560
572
|
Style/NumberedParametersLimit:
|
|
561
|
-
Max: 1_000_000
|
|
562
573
|
Enabled: true
|
|
574
|
+
Max: 1_000_000
|
|
563
575
|
|
|
564
576
|
Style/NumericLiteralPrefix:
|
|
565
577
|
Enabled: true
|
|
@@ -635,6 +647,9 @@ Style/RandomWithOffset:
|
|
|
635
647
|
Style/ReturnNilInPredicateMethodDefinition:
|
|
636
648
|
Enabled: true
|
|
637
649
|
|
|
650
|
+
Style/RedundantArrayFlatten:
|
|
651
|
+
Enabled: true
|
|
652
|
+
|
|
638
653
|
Style/RedundantInterpolationUnfreeze:
|
|
639
654
|
Enabled: true
|
|
640
655
|
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
ThreadSafety/ClassAndModuleAttributes:
|
|
2
|
+
# NOTE:
|
|
3
|
+
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
4
|
+
# - i write a lot of DSL and architecture frameworks;
|
|
5
|
+
# - so i manage this vua blocking privitives;
|
|
6
|
+
Enabled: false
|
|
7
|
+
ActiveSupportClassAttributeAllowed: false
|
|
8
|
+
|
|
9
|
+
ThreadSafety/ClassInstanceVariable:
|
|
10
|
+
# NOTE:
|
|
11
|
+
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
12
|
+
# - i write a lot of DSL and architecture frameworks;
|
|
13
|
+
# - so i manage this vua blocking privitives;
|
|
14
|
+
Enabled: false
|
|
15
|
+
|
|
16
|
+
ThreadSafety/DirChdir:
|
|
17
|
+
# NOTE:
|
|
18
|
+
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
19
|
+
# - i write a lot of DSL and architecture frameworks;
|
|
20
|
+
# - so i manage this vua blocking privitives;
|
|
21
|
+
Enabled: false
|
|
22
|
+
AllowCallWithBlock: true
|
|
23
|
+
|
|
24
|
+
ThreadSafety/MutableClassInstanceVariable:
|
|
25
|
+
# NOTE:
|
|
26
|
+
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
27
|
+
# - i write a lot of DSL and architecture frameworks;
|
|
28
|
+
# - so i manage this vua blocking privitives;
|
|
29
|
+
Enabled: false
|
|
30
|
+
EnforcedStyle: literals
|
|
31
|
+
|
|
32
|
+
# NOTE: wat?
|
|
33
|
+
ThreadSafety/NewThread:
|
|
34
|
+
Enabled: false
|
|
35
|
+
|
|
36
|
+
ThreadSafety/RackMiddlewareInstanceVariable:
|
|
37
|
+
# NOTE:
|
|
38
|
+
# - we should not "block" this behaviour if we have a lot of expirinece with async programming;
|
|
39
|
+
# - i write a lot of DSL and architecture frameworks;
|
|
40
|
+
# - so i manage this vua blocking privitives;
|
|
41
|
+
Enabled: false
|
|
42
|
+
Include:
|
|
43
|
+
- app/middleware/**/*.rb
|
|
44
|
+
- lib/middleware/**/*.rb
|
|
45
|
+
- app/middlewares/**/*.rb
|
|
46
|
+
- lib/middlewares/**/*.rb
|
|
47
|
+
AllowedIdentifiers: []
|
data/lib/rbs/lint.yml
CHANGED
data/lib/rspec/rails.yml
CHANGED
data/lib/rspec/rspec.yml
CHANGED
data/lib/rubocop.general.yml
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
plugins:
|
|
1
|
+
plugins:
|
|
2
|
+
- rubocop-performance
|
|
3
|
+
- rubocop-thread_safety
|
|
2
4
|
|
|
3
5
|
inherit_from:
|
|
4
6
|
- ./common/bundler.yml
|
|
@@ -11,6 +13,7 @@ inherit_from:
|
|
|
11
13
|
- ./common/security.yml
|
|
12
14
|
- ./common/style.yml
|
|
13
15
|
- ./common/migration.yml
|
|
16
|
+
- ./common/thread_safety.yml
|
|
14
17
|
|
|
15
18
|
AllCops:
|
|
16
19
|
DefaultFormatter: progress
|
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.81.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Rustam Ibragimov
|
|
@@ -15,70 +15,70 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - '='
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: 1.
|
|
18
|
+
version: 1.81.7
|
|
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.81.7
|
|
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.26.1
|
|
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.26.1
|
|
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.33.4
|
|
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.33.4
|
|
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.8.0
|
|
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.8.0
|
|
68
68
|
- !ruby/object:Gem::Dependency
|
|
69
69
|
name: rubocop-rspec_rails
|
|
70
70
|
requirement: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - '='
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: 2.
|
|
74
|
+
version: 2.32.0
|
|
75
75
|
type: :runtime
|
|
76
76
|
prerelease: false
|
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
79
|
- - '='
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: 2.
|
|
81
|
+
version: 2.32.0
|
|
82
82
|
- !ruby/object:Gem::Dependency
|
|
83
83
|
name: rubocop-rake
|
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -113,28 +113,42 @@ dependencies:
|
|
|
113
113
|
requirements:
|
|
114
114
|
- - '='
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: 2.
|
|
116
|
+
version: 2.28.0
|
|
117
117
|
type: :runtime
|
|
118
118
|
prerelease: false
|
|
119
119
|
version_requirements: !ruby/object:Gem::Requirement
|
|
120
120
|
requirements:
|
|
121
121
|
- - '='
|
|
122
122
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: 2.
|
|
123
|
+
version: 2.28.0
|
|
124
124
|
- !ruby/object:Gem::Dependency
|
|
125
125
|
name: rubocop-on-rbs
|
|
126
126
|
requirement: !ruby/object:Gem::Requirement
|
|
127
127
|
requirements:
|
|
128
128
|
- - '='
|
|
129
129
|
- !ruby/object:Gem::Version
|
|
130
|
-
version: 1.
|
|
130
|
+
version: 1.8.0
|
|
131
|
+
type: :runtime
|
|
132
|
+
prerelease: false
|
|
133
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
134
|
+
requirements:
|
|
135
|
+
- - '='
|
|
136
|
+
- !ruby/object:Gem::Version
|
|
137
|
+
version: 1.8.0
|
|
138
|
+
- !ruby/object:Gem::Dependency
|
|
139
|
+
name: rubocop-thread_safety
|
|
140
|
+
requirement: !ruby/object:Gem::Requirement
|
|
141
|
+
requirements:
|
|
142
|
+
- - '='
|
|
143
|
+
- !ruby/object:Gem::Version
|
|
144
|
+
version: 0.7.3
|
|
131
145
|
type: :runtime
|
|
132
146
|
prerelease: false
|
|
133
147
|
version_requirements: !ruby/object:Gem::Requirement
|
|
134
148
|
requirements:
|
|
135
149
|
- - '='
|
|
136
150
|
- !ruby/object:Gem::Version
|
|
137
|
-
version:
|
|
151
|
+
version: 0.7.3
|
|
138
152
|
- !ruby/object:Gem::Dependency
|
|
139
153
|
name: bundler
|
|
140
154
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -208,6 +222,7 @@ files:
|
|
|
208
222
|
- lib/common/rake.yml
|
|
209
223
|
- lib/common/security.yml
|
|
210
224
|
- lib/common/style.yml
|
|
225
|
+
- lib/common/thread_safety.yml
|
|
211
226
|
- lib/rbs/layout.yml
|
|
212
227
|
- lib/rbs/lint.yml
|
|
213
228
|
- lib/rbs/style.yml
|
|
@@ -238,7 +253,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
238
253
|
- !ruby/object:Gem::Version
|
|
239
254
|
version: '0'
|
|
240
255
|
requirements: []
|
|
241
|
-
rubygems_version: 3.6.
|
|
256
|
+
rubygems_version: 3.6.9
|
|
242
257
|
specification_version: 4
|
|
243
258
|
summary: A set of rubocop settings
|
|
244
259
|
test_files: []
|