File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
main_branch_name : main
2
- threshold_to_run_on_all_files : 10
2
+ threshold_to_run_on_all_files : 10
3
+ # For ARM based processors, use linux/x86_64
4
+ docker_platform : linux/amd64
Original file line number Diff line number Diff line change 5
5
6
6
module CodeclimateDiff
7
7
class CodeclimateWrapper
8
+
8
9
def run_codeclimate ( filename = "" )
10
+ docker_platform = CodeclimateDiff . configuration [ "docker_platform" ] || "linux/amd64"
11
+
9
12
`docker run \
10
13
--interactive --tty --rm \
11
14
--env CODECLIMATE_CODE="$PWD" \
12
15
--volume "$PWD":/code \
13
16
--volume /var/run/docker.sock:/var/run/docker.sock \
14
17
--volume /tmp/cc:/tmp/cc \
18
+ --platform #{ docker_platform } \
15
19
codeclimate/codeclimate analyze -f json #{ filename } `
16
20
end
17
21
You can’t perform that action at this time.
0 commit comments