rubocop-thread_safety 0.5.1 → 0.6.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/.github/workflows/ci.yml +43 -14
- data/.github/workflows/lint.yml +14 -10
- data/.rspec +1 -0
- data/.rubocop.yml +13 -11
- data/Appraisals +16 -4
- data/CHANGELOG.md +14 -0
- data/Gemfile +12 -1
- data/README.md +3 -1
- data/Rakefile +14 -0
- data/config/default.yml +15 -0
- data/config/obsoletion.yml +2 -0
- data/docs/modules/ROOT/pages/cops.adoc +8 -0
- data/docs/modules/ROOT/pages/cops_threadsafety.adoc +361 -0
- data/gemfiles/rubocop_1.48.gemfile +20 -0
- data/gemfiles/rubocop_1.66.gemfile +19 -0
- data/lib/rubocop/cop/mixin/operation_with_threadsafe_result.rb +44 -0
- data/lib/rubocop/cop/thread_safety/class_and_module_attributes.rb +5 -2
- data/lib/rubocop/cop/thread_safety/{instance_variable_in_class_method.rb → class_instance_variable.rb} +66 -12
- data/lib/rubocop/cop/thread_safety/dir_chdir.rb +37 -0
- data/lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb +8 -41
- data/lib/rubocop/cop/thread_safety/new_thread.rb +3 -5
- data/lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb +120 -0
- data/lib/rubocop/thread_safety/inject.rb +2 -2
- data/lib/rubocop/thread_safety/version.rb +1 -1
- data/lib/rubocop/thread_safety.rb +2 -0
- data/lib/rubocop-thread_safety.rb +5 -1
- data/rubocop-thread_safety.gemspec +9 -8
- data/tasks/cops_documentation.rake +46 -0
- metadata +25 -90
- data/.rubocop_todo.yml +0 -12
- data/gemfiles/rubocop_0.90.gemfile +0 -7
- data/gemfiles/rubocop_1.20.gemfile +0 -7
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-thread_safety
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Gee
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,90 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 1.48.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: appraisal
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.10'
|
48
|
-
- - "<"
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: '3'
|
51
|
-
type: :development
|
52
|
-
prerelease: false
|
53
|
-
version_requirements: !ruby/object:Gem::Requirement
|
54
|
-
requirements:
|
55
|
-
- - ">="
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: '1.10'
|
58
|
-
- - "<"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '3'
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: pry
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '0'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - ">="
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '0'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: rake
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - ">="
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '10.0'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - ">="
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '10.0'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: rspec
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '3.0'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '3.0'
|
26
|
+
version: 1.48.1
|
103
27
|
description: |2
|
104
28
|
Thread-safety checks via static analysis.
|
105
29
|
A plugin for the RuboCop code style enforcing & linting tool.
|
@@ -115,8 +39,8 @@ files:
|
|
115
39
|
- ".gitignore"
|
116
40
|
- ".rspec"
|
117
41
|
- ".rubocop.yml"
|
118
|
-
- ".rubocop_todo.yml"
|
119
42
|
- Appraisals
|
43
|
+
- CHANGELOG.md
|
120
44
|
- Gemfile
|
121
45
|
- LICENSE.txt
|
122
46
|
- README.md
|
@@ -124,22 +48,33 @@ files:
|
|
124
48
|
- bin/console
|
125
49
|
- bin/setup
|
126
50
|
- config/default.yml
|
127
|
-
-
|
128
|
-
-
|
51
|
+
- config/obsoletion.yml
|
52
|
+
- docs/modules/ROOT/pages/cops.adoc
|
53
|
+
- docs/modules/ROOT/pages/cops_threadsafety.adoc
|
54
|
+
- gemfiles/rubocop_1.48.gemfile
|
55
|
+
- gemfiles/rubocop_1.66.gemfile
|
129
56
|
- lib/rubocop-thread_safety.rb
|
57
|
+
- lib/rubocop/cop/mixin/operation_with_threadsafe_result.rb
|
130
58
|
- lib/rubocop/cop/thread_safety/class_and_module_attributes.rb
|
131
|
-
- lib/rubocop/cop/thread_safety/
|
59
|
+
- lib/rubocop/cop/thread_safety/class_instance_variable.rb
|
60
|
+
- lib/rubocop/cop/thread_safety/dir_chdir.rb
|
132
61
|
- lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb
|
133
62
|
- lib/rubocop/cop/thread_safety/new_thread.rb
|
63
|
+
- lib/rubocop/cop/thread_safety/rack_middleware_instance_variable.rb
|
134
64
|
- lib/rubocop/thread_safety.rb
|
135
65
|
- lib/rubocop/thread_safety/inject.rb
|
136
66
|
- lib/rubocop/thread_safety/version.rb
|
137
67
|
- rubocop-thread_safety.gemspec
|
68
|
+
- tasks/cops_documentation.rake
|
138
69
|
homepage: https://github.com/rubocop/rubocop-thread_safety
|
139
70
|
licenses:
|
140
71
|
- MIT
|
141
|
-
metadata:
|
142
|
-
|
72
|
+
metadata:
|
73
|
+
changelog_uri: https://github.com/rubocop/rubocop-thread_safety/blob/master/CHANGELOG.md
|
74
|
+
source_code_uri: https://github.com/rubocop/rubocop-thread_safety
|
75
|
+
bug_tracker_uri: https://github.com/rubocop/rubocop-thread_safety/issues
|
76
|
+
rubygems_mfa_required: 'true'
|
77
|
+
post_install_message:
|
143
78
|
rdoc_options: []
|
144
79
|
require_paths:
|
145
80
|
- lib
|
@@ -147,15 +82,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
82
|
requirements:
|
148
83
|
- - ">="
|
149
84
|
- !ruby/object:Gem::Version
|
150
|
-
version: 2.
|
85
|
+
version: 2.7.0
|
151
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
87
|
requirements:
|
153
88
|
- - ">="
|
154
89
|
- !ruby/object:Gem::Version
|
155
90
|
version: '0'
|
156
91
|
requirements: []
|
157
|
-
rubygems_version: 3.
|
158
|
-
signing_key:
|
92
|
+
rubygems_version: 3.5.11
|
93
|
+
signing_key:
|
159
94
|
specification_version: 4
|
160
95
|
summary: Thread-safety checks via static analysis
|
161
96
|
test_files: []
|
data/.rubocop_todo.yml
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
# This configuration was generated by
|
2
|
-
# `rubocop --auto-gen-config --no-auto-gen-timestamp`
|
3
|
-
# using RuboCop version 1.12.1.
|
4
|
-
# The point is for the user to remove these configuration records
|
5
|
-
# one by one as the offenses are removed from the code base.
|
6
|
-
# Note that changes in the inspected code, or installation of new
|
7
|
-
# versions of RuboCop, may require this file to be generated again.
|
8
|
-
|
9
|
-
# Offense count: 3
|
10
|
-
InternalAffairs/NodeDestructuring:
|
11
|
-
Exclude:
|
12
|
-
- 'lib/rubocop/cop/thread_safety/mutable_class_instance_variable.rb'
|