Ready-to-run collection of linters and formatters as a GitHub Action or container
open sourceMITfree
Super-Linter is a container image that bundles a curated set of linters, formatters and code analyzers for many languages and runs them over a repository in parallel. It runs as a GitHub Action, reporting each tool's findings as status checks, or anywhere with Docker or another OCI container runtime. Each tool is turned on or off and configured with environment variables, and a fix mode lets supported formatters and linters rewrite the files. A slim variant leaves out the Rust, .NET, PowerShell and ARM template tools to keep the image smaller. It started at GitHub and is now maintained by an independent team.
Problems it solves
- lint every language in my repository on each pull request without setting up each linter
- one GitHub Action that checks formatting for all the file types in a repo
- run the same linting locally and in CI from one container
Features
- many linters and formatters in one container image
- runs the linters in parallel
- GitHub Actions status checks
- runs outside GitHub Actions with any OCI container runtime
- fix mode for supported tools
- slim image variant
Forks
- MegaLinter Linting suite that checks every language, format and config file in a repository. Its own project.
Alternatives
The same job
These do what Super-Linter does.
- MegaLinter Linting suite that checks every language, format and config file in a repository
- actionlint Static checker for GitHub Actions workflow files
- ShellCheck A shell script static analysis tool
- ansible-lint Checks playbooks for practices and behavior that could potentially be improved
- TFLint A Pluggable Terraform Linter
- golangci-lint Fast linters runner for Go
