Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
goSDN
Commits
939e8d0c
Commit
939e8d0c
authored
1 year ago
by
Neil-Jocelyn Schark
Browse files
Options
Downloads
Patches
Plain Diff
improve
parent
0515e7b1
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!813
Improve linting output for local linter
Pipeline
#187914
passed
1 year ago
Stage: build
Stage: build-testing
Stage: test
Stage: analyze
Stage: test-legacy
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitlab/ci/.code-quality-ci.yml
+2
-2
2 additions, 2 deletions
.gitlab/ci/.code-quality-ci.yml
.golangci.yml
+4
-1
4 additions, 1 deletion
.golangci.yml
Makefile
+2
-2
2 additions, 2 deletions
Makefile
makefiles/ci/Makefile
+1
-1
1 addition, 1 deletion
makefiles/ci/Makefile
with
9 additions
and
6 deletions
.gitlab/ci/.code-quality-ci.yml
+
2
−
2
View file @
939e8d0c
...
@@ -7,9 +7,9 @@ code-quality:
...
@@ -7,9 +7,9 @@ code-quality:
-
make ci-lint
-
make ci-lint
artifacts
:
artifacts
:
reports
:
reports
:
codequality
:
gl-code
-quality-report
.json
codequality
:
gl-code
climate
.json
paths
:
paths
:
-
gl-code
-quality-report
.json
-
gl-code
climate
.json
needs
:
[]
needs
:
[]
code-vulnerability
:
code-vulnerability
:
...
...
This diff is collapsed.
Click to expand it.
.golangci.yml
+
4
−
1
View file @
939e8d0c
...
@@ -24,7 +24,10 @@ run:
...
@@ -24,7 +24,10 @@ run:
# output settings -> code-climate for GitLab
# output settings -> code-climate for GitLab
output
:
output
:
format
:
code-climate
formats
:
-
format
:
code-climate
path
:
gl-codeclimate.json
-
format
:
colored-line-number
print-issued-lines
:
true
print-issued-lines
:
true
print-linter-name
:
true
print-linter-name
:
true
uniq-by-line
:
true
uniq-by-line
:
true
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
2
−
2
View file @
939e8d0c
...
@@ -53,10 +53,10 @@ install-tools:
...
@@ -53,10 +53,10 @@ install-tools:
@
echo
Finished installing development tooling
@
echo
Finished installing development tooling
lint
:
install-tools
lint
:
install-tools
./
$(
TOOLS_DIR
)
/golangci-lint run
--config
.golangci.yml
| jq
./
$(
TOOLS_DIR
)
/golangci-lint run
--config
.golangci.yml
lint-fix
:
install-tools
lint-fix
:
install-tools
./
$(
TOOLS_DIR
)
/golangci-lint run
--config
.golangci.yml
--fix
| jq
./
$(
TOOLS_DIR
)
/golangci-lint run
--config
.golangci.yml
--fix
build
:
pre build-gosdn build-gosdnc build-plugin-registry build-venv-manager build-arista-routing-engine-app build-hostname-checker-app build-basic-interface-monitoring-app
build
:
pre build-gosdn build-gosdnc build-plugin-registry build-venv-manager build-arista-routing-engine-app build-hostname-checker-app build-basic-interface-monitoring-app
...
...
This diff is collapsed.
Click to expand it.
makefiles/ci/Makefile
+
1
−
1
View file @
939e8d0c
...
@@ -2,4 +2,4 @@ ci-install-tools:
...
@@ -2,4 +2,4 @@ ci-install-tools:
go
install
gotest.tools/gotestsum@
$(
GOTESTSUM_VERSION
)
go
install
gotest.tools/gotestsum@
$(
GOTESTSUM_VERSION
)
ci-lint
:
ci-install-tools
ci-lint
:
ci-install-tools
golangci-lint run
--config
.golangci.yml
--out-format
code-climate
golangci-lint run
--config
.golangci.yml
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment