Standard Ruby – linter and formatter

Standard Ruby is a linter and formatter built on RuboCop that gives projects a shared set of style rules. It removes the need for teams to choose and maintain their own formatting conventions, while also checking for potential errors and inefficient code.

Its style rules are fixed, but its operation is configurable. Projects can select files to check, exclude particular offences, and add extra checks through plugins. Existing codebases can adopt it gradually without correcting every historical violation at once.

This is free and open source software.

Key Features

  • Automatic correction of many offences, with a separate option for fixes that may change program behaviour.
  • Performance checks supplied through standard-performance and rubocop-performance.
  • Command-line and Rake interfaces for checking individual files or directory trees, including use in continuous integration.
  • Generates a todo file recording existing violations so teams can address them incrementally while detecting newly introduced problems.
  • Targeted exclusions for individual lines, sections, files, and filename patterns, including suppression of specific rules.
  • Ruby LSP integration provides inline diagnostics, formatting, and code actions for applying fixes within compatible editors.
  • A standalone language server offers diagnostics and formatting for editors with Language Server Protocol support.
  • Plugins such as standard-rails and standard-sorbet add specialised checks without overriding the default ruleset.
  • Supports additional rules through configuration extensions, parallel checking, and alternative report formats including JSON.
  • Cross-platform support – runs on Linux, macOS, and Windows.

Website: github.com/standardrb/standard
Support:
Developer: Test Double, Inc.
License: MIT License

Standard Ruby is written in Ruby. Learn Ruby with our recommended free books and free tutorials.


Related Software

Ruby Linters
RuboCopRuby static code analyzer and formatter
ReekExamines Ruby classes, modules, and methods
Standard RubyProvides an opinionated, unconfigurable ruleset
HAML-LintRuby-based linter for HAML templates
Slim-LintConfigurable tool for analyzing Slim templates
ERB LintLint your ERB or HTML files
YARD-LintFor Ruby and Ruby on Rails projects that lint YARD documentation
oxicopFast Ruby linter

Read our verdict in the software roundup.

Ruby Code Formatters
RuboCopChecks style, detects potential problems, and autocorrects offences
Standard RubyCombines linting and automatic fixes with a shared set of rules
rubyfmtApplies a consistent style with minimal configuration required
Syntax TreeToolkit for parsing, inspecting, and transforming source files
RufoKeeps source files tidy with an opinionated approach to style
alofmtDelivers fast, deterministic formatting for consistent results

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted