code-scanning-rubocop 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +2 -2
- data/entrypoint.sh +1 -2
- data/lib/code_scanning/rubocop/sarif_formatter.rb +1 -1
- data/lib/code_scanning/rubocop/version.rb +1 -1
- 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: '09beea9b3ef6e114f880760f06d17dd25ba099ec4e77456f5cd2274b36551a4c'
|
4
|
+
data.tar.gz: 6355d25dec4c91e28a5d88841b1bff44e4dec9495831ebcc1e7f6d06d0bd0b8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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"]
|
data/entrypoint.sh
CHANGED
@@ -71,7 +71,7 @@ module CodeScanning
|
|
71
71
|
end
|
72
72
|
|
73
73
|
def file_finished(file, offenses)
|
74
|
-
relative_path =
|
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)
|