qmetrics.net

Spotless

Gradle and Maven build plugins for multi-language code formatting

Spotless plugs into Gradle, Maven, and SBT to format and fix many source and markup languages from your build. It handles encoding, line endings, license headers, and incremental checks.

Overview

Spotless is a formatting layer for software projects that applies consistent style across many languages and file types from within common Java build tools. You configure formatters and steps once; the tool can both report drift and rewrite files so reviews focus on logic rather than spacing debates.

It ships as dedicated integrations for Gradle and Maven, with an external path for SBT and hooks for other build systems. Under the hood it composes small formatting steps—import ordering, trailing whitespace, license headers, and language-specific formatters such as Google Java Format, ktlint, prettier, black, and Eclipse-based formatters for several ecosystems.

Operational features aimed at large repos include idempotent formatting safeguards, encoding checks, optional ratcheting against a git reference so only changed files are enforced, spotless on/off regions in files, and faster incremental format or up-to-date checks. Gradle-oriented flows also mention build cache support for formatting on fresh checkouts.

Editor and IDE workflows are linked from the project overview: Gradle users can tie into VS Code and IntelliJ with either a Spotless daemon or the Gradle integration, so local edits and CI can share the same rules without each developer running ad hoc formatters.

Key features

  • Gradle, Maven, and SBT integrations
  • Many language and markup formatters
  • License header and import-order steps
  • Git ratchet and incremental checks
  • Encoding and idempotency safeguards
  • Prettier, ESLint, and npm-based formatters
  • Toggle regions with spotless off/on markers
  • VS Code and IntelliJ Gradle integrations

Use cases

  • Enforce formatting in CI via Gradle or Maven
  • Standardize style across polyglot repositories
  • Apply license headers on save or check
  • Format only files changed since a git branch
  • Compose custom steps with native or regex rules

Tags

Similar software

Prettier

Opinionated multi-language code formatter

Prettier enforces consistent style by parsing code and reprinting it with fixed rules and line wrapping. It supports many web and data languages.

  • AST-based consistent reprinting
  • Wide language and plugin support
  • Editor and CI integration
JavaScriptDetails →
★ 52.5k⟳ yesterdayMIT

Oxc

Rust-based JavaScript and TypeScript compiler toolkit

Oxc bundles a parser, linter, formatter, transformer, resolver, and minifier for JavaScript and TypeScript. Oxlint and Oxfmt run via npx for everyday lint and format tasks.

  • Oxlint ESLint-compatible linter
  • Oxfmt Prettier-compatible formatter
  • JavaScript and TypeScript parser
RustLinux, macOSDetails →
★ 23.8k⟳ todayMIT

PHP Parser

PHP library for parsing and manipulating PHP ASTs

A PHP package that parses PHP source into an abstract syntax tree for analysis and code transformation. It targets static analysis and programmatic rewriting workflows.

  • PHP 7 and 8 AST parsing
  • Partial parse on invalid code
  • AST dump and pretty-print
PHPDetails →
★ 17.5k⟳ 5 days agoBSD-3-Clause

typescript-eslint

ESLint tooling for linting TypeScript codebases

typescript-eslint connects ESLint to TypeScript syntax and ships parser services plus lint rules. It enables standard and type-aware linting for JavaScript and TypeScript projects.

  • TypeScript parser for ESLint
  • Parser services for other tools
  • Large standard rule catalog
TypeScriptDetails →
★ 16.5k⟳ todayMIT

laravel-ide-helper

Laravel IDE helper and PHPDoc generator package

A Composer package for Laravel apps that builds helper files and PHPDoc so IDEs can autocomplete facades, models, fluent APIs, and container bindings from your project source.

  • Facade PHPDoc via ide-helper:generate
  • Model property docs from database schema
  • PhpStorm meta for container bindings
PHPDetails →
★ 15k⟳ 1 month agoMIT

quicktype

Type and serializer generator from JSON, Schema, and GraphQL

Quicktype infers strongly typed models and serializers from JSON samples, JSON Schema, TypeScript, or GraphQL. Output targets many programming languages via the web app, CLI, or JavaScript API.

  • JSON and JSON Schema inputs
  • GraphQL and TypeScript sources
  • Twenty-five plus target languages
TypeScriptWeb, macOS, Windows, CLIDetails →
★ 13.9k⟳ 2 months agoApache-2.0