Automated linter installation and configuration for consistent code quality across teams and environments.
# Install
go install github.com/codeGROOVE-dev/lint-install@latest
# Add linters to your project
lint-install .
# Run linters
make lint
- One command setup - Adds industry-standard linters instantly
- Version pinning - Same linter versions for everyone
- Battle-tested configs - Opinionated rules that catch real bugs
- Multi-environment - Works locally, in CI/CD, and IDEs
- Go - golangci-lint
- Shell - shellcheck
- Dockerfile - hadolint
- YAML - yamllint
# Basic usage
lint-install .
make lint
# Only Go and Shell linters
lint-install -dockerfile=ignore -yaml=ignore .
# Preview changes
lint-install -dry-run .
# CI/CD (GitHub Actions)
- run: make lint-install
- run: make lint
-dockerfile string Dockerfile linting: [ignore, warn, error] (default "error")
-go string Go linting: [ignore, warn, error] (default "error")
-shell string Shell linting: [ignore, warn, error] (default "error")
-yaml string YAML linting: [ignore, warn, error] (default "error")
-dry-run Preview changes without applying
-makefile string Makefile name (default "Makefile")
- Makefile targets:
lint
,lint-<language>
,lint-install
- Config files:
.golangci.yml
,.yamllint
- Linter binaries:
./out/linters/
(git-ignored)
Contributions welcome! Submit issues or pull requests.
See LICENSE for details.