6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-07 12:58:26 +00:00

Add linting with golangci-lint to CI pipelines

This commit is contained in:
Grzegorz Dlugoszewski
2025-08-11 22:51:11 +02:00
parent a4b92d5c9d
commit 0612421afc
3 changed files with 27 additions and 10 deletions

View File

@@ -270,6 +270,24 @@ go tool cover -html=coverage.out
go test -v ./pkg/git
```
### Linting
This project uses comprehensive linting with golangci-lint. The linting configuration includes 25+ linters for code quality, security, and style checking.
```bash
# Install golangci-lint (if not already installed)
go install github.com/golangci/golangci-lint/cmd/golangci-lint@latest
# Run linting with the project's configuration
golangci-lint run
# Run with verbose output
golangci-lint run -v
# Fix auto-fixable issues
golangci-lint run --fix
```
## Troubleshooting
### Common Issues