armitage-rubocop 1.75.7.5 → 1.75.7.7
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 -0
- data/Gemfile.lock +6 -2
- data/LICENSE.txt +1 -1
- data/README.md +7 -0
- data/Rakefile +3 -1
- data/armitage-rubocop.gemspec +11 -10
- data/lib/common/thread_safety.yml +47 -0
- data/lib/rubocop.general.yml +4 -1
- data/lib/rubocop.rbs.yml +2 -1
- metadata +16 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b760aa54bb80c40f32700d59b03410599c771c95bf2179235f0a361f1622c83
|
4
|
+
data.tar.gz: 89b325fc2d0edbf296b082378a4d9fbe3510314d65ccb5237226f1d66130ffad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c8c7ac5bc4bafd683ec6674dd19a58f6682b6ae38acc03b36c6d10e50e607d3dda006825873bc69935a029c30bf2c95ff646a3a7e06cba1b6388b3a59d84b2ad
|
7
|
+
data.tar.gz: f953515c1e8fe8bd06442ce94e87ff7046f5835c1cb931e76e40d1b5a60d28816b1dad96d7aaa344fb79e6bb76c36e84d785c76e354161ee816f2972764f842b
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
armitage-rubocop (1.75.7.
|
4
|
+
armitage-rubocop (1.75.7.6)
|
5
5
|
rubocop (= 1.75.7)
|
6
6
|
rubocop-capybara (= 2.22.1)
|
7
7
|
rubocop-factory_bot (= 2.27.1)
|
@@ -11,6 +11,7 @@ PATH
|
|
11
11
|
rubocop-rake (= 0.7.1)
|
12
12
|
rubocop-rspec (= 3.6.0)
|
13
13
|
rubocop-rspec_rails (= 2.31.0)
|
14
|
+
rubocop-thread_safety (= 0.7.2)
|
14
15
|
|
15
16
|
GEM
|
16
17
|
remote: https://rubygems.org/
|
@@ -104,6 +105,9 @@ GEM
|
|
104
105
|
lint_roller (~> 1.1)
|
105
106
|
rubocop (~> 1.72, >= 1.72.1)
|
106
107
|
rubocop-rspec (~> 3.5)
|
108
|
+
rubocop-thread_safety (0.7.2)
|
109
|
+
lint_roller (~> 1.1)
|
110
|
+
rubocop (~> 1.72, >= 1.72.1)
|
107
111
|
ruby-progressbar (1.13.0)
|
108
112
|
securerandom (0.4.1)
|
109
113
|
tzinfo (2.0.6)
|
@@ -125,4 +129,4 @@ DEPENDENCIES
|
|
125
129
|
rake (~> 13.1)
|
126
130
|
|
127
131
|
BUNDLED WITH
|
128
|
-
2.6.
|
132
|
+
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.75.7.
|
9
|
+
spec.version = '1.75.7.7'
|
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.75.7'
|
28
|
+
spec.add_dependency 'rubocop-performance', '= 1.25.0'
|
29
|
+
spec.add_dependency 'rubocop-rails', '= 2.32.0'
|
30
|
+
spec.add_dependency 'rubocop-rspec', '= 3.6.0'
|
31
|
+
spec.add_dependency 'rubocop-rspec_rails', '= 2.31.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.27.1'
|
35
|
+
spec.add_dependency 'rubocop-on-rbs', '= 1.7.0'
|
36
|
+
spec.add_dependency 'rubocop-thread_safety', '= 0.7.2'
|
36
37
|
|
37
38
|
spec.add_development_dependency 'bundler', '~> 2.3'
|
38
39
|
spec.add_development_dependency 'rake', '~> 13.1'
|
@@ -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/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.75.7.
|
4
|
+
version: 1.75.7.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rustam Ibragimov
|
@@ -135,6 +135,20 @@ dependencies:
|
|
135
135
|
- - '='
|
136
136
|
- !ruby/object:Gem::Version
|
137
137
|
version: 1.7.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.2
|
145
|
+
type: :runtime
|
146
|
+
prerelease: false
|
147
|
+
version_requirements: !ruby/object:Gem::Requirement
|
148
|
+
requirements:
|
149
|
+
- - '='
|
150
|
+
- !ruby/object:Gem::Version
|
151
|
+
version: 0.7.2
|
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
|