code-scanning-rubocop 0.1.0 → 0.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fba92930acfcdaf83b378482055fe0d246bdcd7703016c552fa5cd16cc5a33d8
4
- data.tar.gz: e0db9ec9d8e166c0e113481750a797c2f3a2c154ad260c20d0157908fa6389aa
3
+ metadata.gz: '09beea9b3ef6e114f880760f06d17dd25ba099ec4e77456f5cd2274b36551a4c'
4
+ data.tar.gz: 6355d25dec4c91e28a5d88841b1bff44e4dec9495831ebcc1e7f6d06d0bd0b8f
5
5
  SHA512:
6
- metadata.gz: c072c9d8b0c08f54c3c31edf48ba49be2ef7d7241d177003f8cfdc9b455a1d7a6b5a6e906e751b0b686d4d9d0b9629692a15b1f3e6cf25c2caabbdf94818df09
7
- data.tar.gz: e386d92ff361fa505a7d7d1d1b0f41992175170e2528e7cd9c13128e3469ce097b775c6554a135a9400cba7a2f0cc2f271061f63446512a30db216dbf54ca43a
6
+ metadata.gz: acb1fd0cf47857e36c53107481e4214e5ae45ec095977a4ba3a1c4a8c2778504b4d30a853d01e6fc78f3b9d12c6532470af731b2e39cb352764e486ea42fb246
7
+ data.tar.gz: 5166198c7c0025fafc28150ae5479b90fbdbd270fdb1f2e596bedd9d66a9bbf23e1afa72b2209213e9cc578bf2c4163c942f71317604d3e86635b377117aca97
data/Dockerfile CHANGED
@@ -3,9 +3,9 @@ FROM ruby:2.7.1
3
3
  # throw errors if Gemfile has been modified since Gemfile.lock
4
4
  RUN bundle config --global frozen 1
5
5
 
6
- COPY . .
7
- RUN rake install
6
+ RUN gem install code-scanning-rubocop
8
7
 
9
8
  ARG GITHUB_WORKSPACE
10
9
 
10
+ COPY entrypoint.sh /entrypoint.sh
11
11
  ENTRYPOINT ["/entrypoint.sh"]
@@ -4,6 +4,5 @@ set -x
4
4
 
5
5
  cd $GITHUB_WORKSPACE
6
6
 
7
- gem list
8
- rubocop --require code_scanning --format CodeScanning::SarifFormatter
7
+ rubocop --require code_scanning --format CodeScanning::SarifFormatter -o rubocop.sarif
9
8
  exit 0
@@ -71,7 +71,7 @@ module CodeScanning
71
71
  end
72
72
 
73
73
  def file_finished(file, offenses)
74
- relative_path = Pathname.new(file).relative_path_from(Pathname.new(ROOT)).to_s
74
+ relative_path = RuboCop::PathUtil.relative_path(file)
75
75
 
76
76
  offenses.each do |o|
77
77
  rule = set_rule(o.cop_name, o.severity.name.to_s)
@@ -1,5 +1,5 @@
1
1
  module CodeScanning
2
2
  module Rubocop
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: code-scanning-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arthur Neves