4 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 3
3
specs:
4
4
rubocop-shopify (2.15.1 )
5
5
rubocop (~> 1.62 )
6
+ rubocop-thread_safety
6
7
7
8
GEM
8
9
remote: https://rubygems.org/
44
45
unicode-display_width (>= 2.4.0 , < 4.0 )
45
46
rubocop-ast (1.38.1 )
46
47
parser (>= 3.3.1.0 )
48
+ rubocop-thread_safety (0.7.0 )
49
+ lint_roller (~> 1.1 )
50
+ rubocop (~> 1.72 , >= 1.72.1 )
47
51
ruby-progressbar (1.13.0 )
48
52
unicode-display_width (3.1.4 )
49
53
unicode-emoji (~> 4.0 , >= 4.0.4 )
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ def sort_cops(file_path)
58
58
end
59
59
60
60
if ARGV . empty?
61
- puts "Usage: ruby sort_cops.rb path/to/rubocop.yml"
61
+ puts "Usage: ruby sort-cops path/to/rubocop.yml"
62
62
exit 1
63
63
end
64
64
Original file line number Diff line number Diff line change @@ -24,4 +24,5 @@ Gem::Specification.new do |s|
24
24
s . required_ruby_version = ">= 3.1.0"
25
25
26
26
s . add_dependency ( "rubocop" , "~> 1.62" )
27
+ s . add_dependency ( "rubocop-thread_safety" )
27
28
end
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ inherit_mode:
9
9
- Exclude
10
10
- Include
11
11
12
+ plugins : rubocop-thread_safety
13
+
12
14
AllCops :
13
15
StyleGuideBaseURL : https://shopify.github.io/ruby-style-guide/
14
16
NewCops : disable # New cops will be triaged by style guide maintainers instead.
@@ -1165,7 +1167,7 @@ Style/MultipleComparison:
1165
1167
Enabled : false
1166
1168
1167
1169
Style/MutableConstant :
1168
- Enabled : false
1170
+ Enabled : true
1169
1171
1170
1172
Style/NegatedIf :
1171
1173
Enabled : false
@@ -1549,3 +1551,8 @@ Style/YodaCondition:
1549
1551
1550
1552
Style/ZeroLengthPredicate :
1551
1553
Enabled : false
1554
+
1555
+ <% if rubocop_version >= "1.67" % >
1556
+ ThreadSafety :
1557
+ Enabled : true
1558
+ <% end % >
0 commit comments