File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ class CodeclimateWrapper
99 def run_codeclimate ( filename = "" )
1010 docker_platform = CodeclimateDiff . configuration [ "docker_platform" ] || "linux/amd64"
1111
12- `docker run \
12+ output = `docker run \
1313 --interactive --tty --rm \
1414 --env CODECLIMATE_CODE="$PWD" \
1515 --volume "$PWD":/code \
1616 --volume /var/run/docker.sock:/var/run/docker.sock \
1717 --volume /tmp/cc:/tmp/cc \
1818 --platform #{ docker_platform } \
1919 codeclimate/codeclimate analyze -f json #{ filename } `
20+
21+ output . gsub ( /.*?(?=\[ {)/im , "" ) # remove everything before the first json object (ie WARNINGS)
2022 end
2123
2224 def pull_latest_image
Original file line number Diff line number Diff line change 11# frozen_string_literal: true
22
33module CodeclimateDiff
4- VERSION = "0.1.13 "
4+ VERSION = "0.1.14 "
55end
You can’t perform that action at this time.
0 commit comments