rubocop-packs 0.0.25 → 0.0.26
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/lib/rubocop/packs/private.rb +1 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b087fdd5a5ae2a9a51a04d24966313c19a2892153d656beac60bdb15e959726e
|
|
4
|
+
data.tar.gz: e4ff803bc9a2a37dd68867da260df1f68c7d8adc666a9cb141dcc95a6ac1e448
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 234d22b504eb15892fd02bdab4783e475ab12ec0b6024f5d36519aca0efc1feaa5ac8616f8ba8f242086e5ac100d76edd282c282045136df26b5035954f6306d
|
|
7
|
+
data.tar.gz: 56056baf7a26ab3c2bc21038de1f34e418d01d2f0851fe1eb1234d7ec63e069a930505cf8e858fe6ac913ba5556b8ec230a024efbd7e97b0743756f3fac90c3f
|
|
@@ -157,10 +157,9 @@ module RuboCop
|
|
|
157
157
|
|
|
158
158
|
sig { params(paths: T::Array[String], cop_names: T::Array[String]).returns(T::Array[Offense]) }
|
|
159
159
|
def self.offenses_for(paths:, cop_names:)
|
|
160
|
-
path_arguments = paths.join(' ')
|
|
161
160
|
cop_arguments = cop_names.join(',')
|
|
162
161
|
# I think we can potentially use `RuboCop::CLI.new(args)` for this to avoid shelling out and starting another process that needs to reload the bundle
|
|
163
|
-
args = [
|
|
162
|
+
args = [*paths, "--only=#{cop_arguments}", '--format=json']
|
|
164
163
|
puts "Executing: bundle exec rubocop #{args.join(' ')}"
|
|
165
164
|
json = JSON.parse(Private.execute_rubocop(args))
|
|
166
165
|
offenses = T.let([], T::Array[Offense])
|