Skip to content

Commit 2baaad1

Browse files
Merge pull request #6 from boost/rm/arm-support
Arm support
2 parents 69b1d86 + 52c59ad commit 2baaad1

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

Diff for: .codeclimate_diff.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
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

Diff for: Gemfile.lock

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
codeclimate_diff (0.1.9)
4+
codeclimate_diff (0.1.10)
55
colorize
66
json
77
optparse

Diff for: lib/codeclimate_diff/codeclimate_wrapper.rb

+4
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@
55

66
module CodeclimateDiff
77
class CodeclimateWrapper
8+
89
def run_codeclimate(filename = "")
10+
docker_platform = CodeclimateDiff.configuration["docker_platform"] || "linux/amd64"
11+
912
`docker run \
1013
--interactive --tty --rm \
1114
--env CODECLIMATE_CODE="$PWD" \
1215
--volume "$PWD":/code \
1316
--volume /var/run/docker.sock:/var/run/docker.sock \
1417
--volume /tmp/cc:/tmp/cc \
18+
--platform #{docker_platform} \
1519
codeclimate/codeclimate analyze -f json #{filename}`
1620
end
1721

Diff for: lib/codeclimate_diff/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module CodeclimateDiff
4-
VERSION = "0.1.9"
4+
VERSION = "0.1.10"
55
end

0 commit comments

Comments
 (0)