Rust Linter

Open-source Rust projects categorized as Linter

Top 16 Rust Linter Projects

  • tools

    Unified developer tools for JavaScript, TypeScript, and the web

    Project mention: Rome v12.1: a Rust-based linter formatter for TypeScript, JSX and JSON | news.ycombinator.com | 2023-05-13

    For now, Rome implements most of the ESLint recommended rules (including TypeScript ESLint) and some additional rules that are enabled by default. In the future, you can expect a recommended preset that is a superset of the ESLint recommended preset. So if you're not heavily customising ESLint, you should be able to use Rome.

    Otherwise, most of the rules are not fine-tunable in the way that ESLint is. Rome tries to provide the experience that Prettier provided in the formatting tool: good defaults for a near-zero configuration experience. It tries to adopt the conventions of the JS/TS community. Still, some configuration is provided when the community is divided on some opinions (e.g. space vs. tab indentation, semicolons or as-needed semicolons, ...).

    There is an open issue [1] for listing equivalent rules between ESLint and Rome. Expect more documentation in the future, and maybe a migration tool.

    If I had been one of the founders of Rome, I could have pushed for more compatibility with ESLint. In particular, using the same naming conventions and thus the same names for most rules, and recognising ESLint ignore comments.

    [1] https://github.com/rome/tools/issues/3892

  • ruff

    An extremely fast Python linter, written in Rust.

    Project mention: How to setup formatter for Python ??? | reddit.com/r/neovim | 2023-05-26

    Do yourself a favor, forget everything else and just use black+ruff https://github.com/charliermarsh/ruff

  • SonarQube

    Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.

  • static-analysis

    ⚙️ A curated list of static analysis (SAST) tools and linters for all programming languages, config files, build tools, and more. The focus is on tools which improve code quality.

    Project mention: Looking for feedback on our new website for Code Analysis Tools | reddit.com/r/design_critiques | 2023-04-06

    this is Matthias from https://analysis-tools.dev.

  • rslint

    A (WIP) Extremely fast JavaScript and TypeScript linter and Rust crate

  • ast-grep

    ⚡A fast and polyglot tool for code searching, linting, rewriting at large scale. Written in Rust

    Project mention: Semi-Automated Migration of Bevy: an Example with ast-grep | reddit.com/r/rust | 2023-05-20

    Found some info in the issues, I'll give that approach a try!

  • dotenv-linter

    ⚡️Lightning-fast linter for .env files. Written in Rust 🦀

  • oxc

    The JavaScript Oxidation Compiler

    Project mention: GitHub - Boshen/oxc: The JavaScript Oxidation Compiler -> Linter | reddit.com/r/javascript | 2023-03-03
  • InfluxDB

    Access the most powerful time series database as a service. Ingest, store, & analyze all types of time series data in a fully-managed, purpose-built database. Keep data forever with low-cost storage and superior data compression.

  • statix

    lints and suggestions for the nix programming language

    Project mention: Editor support for the nix language? | reddit.com/r/NixOS | 2022-11-25

    As others have mentioned, there are a couple of LSP implementations. There's also statix for basic static analysis, as well as a few formatters, including nixpkgs-fmt and alejandra.

  • squawk

    🐘 linter for PostgreSQL, focused on migrations

  • svlint

    SystemVerilog linter

  • tagref

    Tagref helps you maintain cross-references in your code.

    Project mention: SPJ on the note system used in the GHC codebase | reddit.com/r/haskell | 2022-12-08

    The GHC notes convention is what inspired me to create Tagref, a tool which enforces basic structural invariants regarding notes: (1) references actually refer to notes which exist, and (2) notes have unique names.

  • lintje

    Lintje is an opinionated linter for Git.

    Project mention: commitlint VS lintje - a user suggested alternative | libhunt.com/r/commitlint | 2022-09-11
  • prometheus-parser-rs

    a Rust library for parsing and validating Prometheus query expressions

    Project mention: A Deep Dive into PromQL — Promql Parser v0.1.0 Written in Rust is Now Available | reddit.com/r/rust | 2023-02-23

    Interesting. There is one existing parser, that I've used with success https://github.com/HewlettPackard/prometheus-parser-rs . I wonder how they compare.

  • constant_sandbox

    Tool for ruby codebases used to enforce boundaries and modularize Rails applications

  • ONLYOFFICE

    ONLYOFFICE Docs — document collaboration in your environment. Powerful document editing and collaboration in your app or environment. Ultimate security, API and 30+ ready connectors, SaaS or on-premises

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-05-26.

Rust Linter related posts

Index

What are some of the best open-source Linter projects in Rust? This list will help you:

Project Stars
1 tools 23,564
2 ruff 14,930
3 static-analysis 11,308
4 rslint 2,581
5 ast-grep 2,017
6 dotenv-linter 1,607
7 oxc 907
8 statix 378
9 squawk 229
10 svlint 221
11 tagref 141
12 cargo-deadlinks 135
13 hyperlink 107
14 lintje 26
15 prometheus-parser-rs 9
16 constant_sandbox 2
TestGPT | Generating meaningful tests for busy devs
Get non-trivial tests (and trivial, too!) suggested right inside your IDE, so you can code smart, create more value, and stay confident when you push.
codium.ai