Skip to content

Commit

Permalink
chore: enhance development workflow with unified linting and tool (#472)
Browse files Browse the repository at this point in the history
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
  • Loading branch information
naveensrinivasan committed Mar 12, 2024
1 parent 2755bfc commit 4e6f50e
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
run:
concurrency: 6
timeout: 5m
issues:
# Maximum issues count per one linter.
# Set to 0 to disable.
# Default: 50
max-issues-per-linter: 0
# Maximum count of issues with the same text.
# Set to 0 to disable.
# Default: 3
max-same-issues: 0
new-from-rev: ""
exclude-rules:
- path: 'test/.*'
linters:
- gosec
linters:
enable:
- gofmt
- goimports
- gosec
- govet
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,6 @@ clean-test-artifacts: ## removes bundles and zarf packages that have been create

push-test-artifacts: ## Push artifacts that UDS CLI tests rely on to GHCR
cd hack && ./push-test-artifacts.sh

lint: ## Run golangci-lint on the project
golangci-lint run ./src/...

0 comments on commit 4e6f50e

Please sign in to comment.