Skip to content
GitLab
Next
Projects
Groups
Snippets
Help
Loading...
Help
See what's new at GitLab
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gitlab-runner
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1,983
Issues
1,983
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
216
Merge Requests
216
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GitLab.org
gitlab-runner
Commits
d28be5b6
Verified
Commit
d28be5b6
authored
Jun 10, 2019
by
Tomasz Maczukin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore gofmt rules from before codeclimate update
parent
2ee5a8dc
Pipeline
#65629156
passed with stages
in 58 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
scripts/codequality
scripts/codequality
+15
-0
No files found.
scripts/codequality
View file @
d28be5b6
...
...
@@ -8,10 +8,25 @@ code_path=$(pwd)
# it will break codequality json file
[
"
$CI
"
!=
""
]
||
docker_tty
=
"--tty"
# Preparing gocyclo analyzer
docker pull registry.gitlab.com/nolith/codeclimate-gocyclo
>
/dev/null
docker tag registry.gitlab.com/nolith/codeclimate-gocyclo codeclimate/codeclimate-gocyclo
>
/dev/null
# Preparing gofmt analyzer
#
# We're forcing the `b65` version because this is the oldest one that
# doesn't require go1.12 compatible formatting. Since we're still stuck
# on go1.8.7 it's better to set specific version of gofmt analyzer than
# to manually update formatting for go1.12 (which is especially hard ant
# frustrating when using an IDE) while still using the old version of Go
# for development.
docker pull codeclimate/codeclimate-gofmt:b65
>
/dev/null
docker tag codeclimate/codeclimate-gofmt:b65 codeclimate/codeclimate-gofmt:latest
>
/dev/null
# Executing codeclimate check
exec
docker run
--rm
$docker_tty
--env
CODECLIMATE_CODE
=
"
$code_path
"
\
--volume
"
$code_path
"
:/code
\
--volume
/var/run/docker.sock:/var/run/docker.sock
\
--volume
/tmp/cc:/tmp/cc
\
codeclimate/codeclimate:0.83.0
"
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment