Linting suite that checks every language, format and config file in a repository
open sourceAGPL-3.0-onlyfree
Forked from Super-Linter. Rewritten in Python to add features Super-Linter didn't have
MegaLinter runs a large set of linters, formatters and security scanners over a repository's code, infrastructure-as-code, configuration and scripts, from a GitHub Action, any other CI system, Docker or the mega-linter-runner command on a developer's machine. It can apply fixes straight to the branch or put them in reports, posts results as pull request comments on GitHub, GitLab, Azure DevOps and Bitbucket, writes SARIF, and sends metrics to Grafana, Datadog, New Relic and Elastic. Flavors are smaller images for one kind of project, and custom flavors keep only the linters a repository needs. Agent skills let coding agents set it up, run it and fix what it finds, and an LLM advisor suggests how to fix linter errors. It's a hard fork of Super-Linter, rewritten in Python, and keeps Super-Linter's configuration working. OX Security backs it.
Problems it solves
- lint every language in my repository on each pull request without setting up each linter
- check code, Dockerfiles, YAML and Terraform in one CI step
- run the same linters locally and in CI with one config file
- let my coding agent run the linters and fix what they find
Features
- linters for many languages, formats and tooling files in one run
- GitHub Action, other CI systems, Docker or local runner
- apply fixes to the branch or in reports
- pull request comments on GitHub, GitLab, Azure DevOps and Bitbucket
- SARIF output
- flavors and custom flavors with only the linters you need
- agent skills for coding agents
- LLM advisor for fixing linter errors
- drop-in replacement for Super-Linter's configuration
Alternatives
The same job
These do what MegaLinter does.
- Super-Linter Ready-to-run collection of linters and formatters as a GitHub Action or container
- Qlty Universal linting, auto-formatting, maintainability, and security scanning
- golangci-lint Fast linters runner for Go
- TFLint A Pluggable Terraform Linter
- ShellCheck A shell script static analysis tool
- ESLint Find and fix problems in your JavaScript code.
