← back

category

Linters and formatters

Linters, static checkers and formatters for Go, the JVM, PHP, Ruby, Swift, Lua, shell, SQL, Markdown, config files and code spelling, and formatters that cover many languages.

Side by side

Linters and formatters
ToolStarsLicenceTermsSelf-hostedLanguageLatestLast push
ShellCheck40kGPL-3.0Open sourceNoHaskellv0.11.02026-10-19
SwiftLint20kMITOpen sourceNoSwift0.65.12026-10-16
golangci-lint19kGPL-3.0Open sourceNoGov2.15.02026-10-18
PHPStan14kMITOpen sourceNoPHP2.3.12026-10-18
PHP CS Fixer14kMITOpen sourceNoPHPv3.95.272026-10-09
RuboCop13kMITOpen sourceNoRubyv1.92.02026-10-19
Hadolint12kGPL-3.0Open sourceNoHaskellv2.15.12026-10-14
SQLFluff10kMITOpen sourceNoPython4.4.02026-10-18
Checkstyle9.6kLGPL-2.1Open sourceNoJavacheckstyle-14.3.02026-10-19
shfmt9.1kBSD-3-ClauseOpen sourceNoGov3.14.12026-10-18
SwiftFormat8.9kMITOpen sourceNoSwift0.64.02026-10-19
detekt7.1kApache-2.0Open sourceNoKotlinv1.23.82026-10-19
Staticcheck6.9kMITOpen sourceNoGo2026.2.22026-10-12
ktlint6.8kMITOpen sourceNoKotlin1.8.02026-10-18
markdownlint6.4kMITOpen sourceNoJavaScriptv0.42.02026-10-19
google-java-format6.2kOtherOpen sourceNoJavav1.37.02026-10-16
Psalm5.9kMITOpen sourceNoPHP6.20.02026-10-17
revive5.6kMITOpen sourceNoGov1.17.12026-10-16
PMD5.5kOtherOpen sourceNoJavapmd_releases/7.28.02026-10-18
actionlint4.3kMITOpen sourceNoGov1.7.122026-07-16
typos4.2kApache-2.0Open sourceNoRustv1.51.12026-10-06
SpotBugs4kLGPL-2.1Open sourceNoJava4.10.52026-10-18
yamllint3.5kGPL-3.0Open sourceNoPythonv1.38.02026-09-19
Standard Ruby2.9kOtherOpen sourceNoRubyv1.31.02026-10-14
SQL Formatter2.9kMITOpen sourceNoTypeScriptv15.9.02026-09-23
codespell2.4kGPL-2.0Open sourceNoPythonv2.4.32026-10-13
StyLua2.3kMPL-2.0Open sourceNoRustv2.6.02026-10-12
CSpell1.7kMITOpen sourceNoTypeScriptv10.4.02026-10-18
PHP_CodeSniffer1.6kBSD-3-ClauseOpen sourceNoPHP4.0.42026-10-08
markdownlint-cli1.1kMITOpen sourceNoJavaScriptv0.49.12026-10-14
treefmt1.1kMITOpen sourceNoGov2.6.02026-10-14
markdownlint-cli2949MITOpen sourceNoJavaScriptv0.23.32026-10-16
Topiary874MITOpen sourceNoRustv0.8.02026-10-16
selene835MPL-2.0Open sourceNoRust0.32.02026-10-01
sqlfmt550OtherOpen sourceNoPythonv0.32.02026-10-19

35 tools

SwiftLint

A tool to enforce Swift style and conventions.

Language
Swift
Licence
MIT
Stars
20k
Latest
0.65.1
Last push
2026-10-16
PHPStan

PHP Static Analysis Tool - discover bugs in your code without running it!

Language
PHP
Licence
MIT
Stars
14k
Latest
2.3.1
Last push
2026-10-18
RuboCop

A Ruby static code analyzer and formatter, based on the community Ruby style guide.

Language
Ruby
Licence
MIT
Stars
13k
Latest
v1.92.0
Last push
2026-10-19
SQLFluff

A modular SQL linter and auto-formatter with support for multiple dialects and templated code.

Language
Python
Licence
MIT
Stars
10k
Latest
4.4.0
Last push
2026-10-18
Checkstyle

Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.

Language
Java
Licence
LGPL-2.1
Stars
9.6k
Latest
checkstyle-14.3.0
Last push
2026-10-19
shfmt

A shell parser, formatter, and interpreter with bash and zsh support; includes shfmt

Language
Go
Licence
BSD-3-Clause
Stars
9.1k
Latest
v3.14.1
Last push
2026-10-18
SwiftFormat

A command-line tool and Xcode Extension for formatting Swift code

Language
Swift
Licence
MIT
Stars
8.9k
Latest
0.64.0
Last push
2026-10-19
ktlint

An anti-bikeshedding Kotlin linter with built-in formatter

Language
Kotlin
Licence
MIT
Stars
6.8k
Latest
1.8.0
Last push
2026-10-18
Psalm

A PHP static analysis tool for finding errors and security vulnerabilities in PHP applications

Language
PHP
Licence
MIT
Stars
5.9k
Latest
6.20.0
Last push
2026-10-17
revive

🔥 Fast, strict, configurable, extensible, and beautiful linter for Go

Language
Go
Licence
MIT
Stars
5.6k
Latest
v1.17.1
Last push
2026-10-16
actionlint

:octocat: Static checker for GitHub Actions workflow files

Language
Go
Licence
MIT
Stars
4.3k
Latest
v1.7.12
Last push
2026-07-16
SpotBugs

SpotBugs is FindBugs' successor. A tool for static analysis to look for bugs in Java code.

Language
Java
Licence
LGPL-2.1
Stars
4k
Latest
4.10.5
Last push
2026-10-18
PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.

Language
PHP
Licence
BSD-3-Clause
Stars
1.6k
Latest
4.0.4
Last push
2026-10-08
treefmt

the formatter multiplexer [maintainers=@zimbatm,@brianmcgee]

Language
Go
Licence
MIT
Stars
1.1k
Latest
v2.6.0
Last push
2026-10-14
markdownlint-cli2

A fast, flexible, configuration-based command-line interface for linting Markdown/CommonMark files with the markdownlint library

Language
JavaScript
Licence
MIT
Stars
949
Latest
v0.23.3
Last push
2026-10-16
selene

A blazing-fast modern Lua linter written in Rust

Language
Rust
Licence
MPL-2.0
Stars
835
Latest
0.32.0
Last push
2026-10-01
sqlfmt

sqlfmt formats your dbt SQL files so you don't have to

Language
Python
Licence
Other
Stars
550
Latest
v0.32.0
Last push
2026-10-19

What these tools replace