Skip to content
Snippets Groups Projects
Commit 9231082b authored by Neil-Jocelyn Schark's avatar Neil-Jocelyn Schark
Browse files

Improve linting output for local linter

See merge request !813
parent 0515e7b1
No related branches found
No related tags found
1 merge request!813Improve linting output for local linter
Pipeline #188120 passed
...@@ -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-codeclimate.json
paths: paths:
- gl-code-quality-report.json - gl-codeclimate.json
needs: [] needs: []
code-vulnerability: code-vulnerability:
......
...@@ -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
......
...@@ -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
......
...@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment