We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69b1d86 commit 0d3babaCopy full SHA for 0d3baba
2 files changed
.codeclimate_diff.yml
@@ -1,2 +1,4 @@
1
main_branch_name: main
2
-threshold_to_run_on_all_files: 10
+threshold_to_run_on_all_files: 10
3
+# For ARM based processors, use linux/x86_64
4
+docker_platform: linux/amd64
lib/codeclimate_diff/codeclimate_wrapper.rb
@@ -5,13 +5,17 @@
5
6
module CodeclimateDiff
7
class CodeclimateWrapper
8
+
9
def run_codeclimate(filename = "")
10
+ docker_platform = CodeclimateDiff.configuration["docker_platform"] || "linux/amd64"
11
12
`docker run \
13
--interactive --tty --rm \
14
--env CODECLIMATE_CODE="$PWD" \
15
--volume "$PWD":/code \
16
--volume /var/run/docker.sock:/var/run/docker.sock \
17
--volume /tmp/cc:/tmp/cc \
18
+ --platform #{docker_platform} \
19
codeclimate/codeclimate analyze -f json #{filename}`
20
end
21
0 commit comments