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 | |
|---|---|
| RuboCop | Ruby static code analyzer and formatter |
| Reek | Examines Ruby classes, modules, and methods |
| Standard Ruby | Provides an opinionated, unconfigurable ruleset |
| HAML-Lint | Ruby-based linter for HAML templates |
| Slim-Lint | Configurable tool for analyzing Slim templates |
| ERB Lint | Lint your ERB or HTML files |
| YARD-Lint | For Ruby and Ruby on Rails projects that lint YARD documentation |
| oxicop | Fast Ruby linter |
Read our verdict in the software roundup.
| Ruby Code Formatters | |
|---|---|
| RuboCop | Checks style, detects potential problems, and autocorrects offences |
| Standard Ruby | Combines linting and automatic fixes with a shared set of rules |
| rubyfmt | Applies a consistent style with minimal configuration required |
| Syntax Tree | Toolkit for parsing, inspecting, and transforming source files |
| Rufo | Keeps source files tidy with an opinionated approach to style |
| alofmt | Delivers fast, deterministic formatting for consistent results |
Read our verdict in the software roundup.
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. |


Please read our Comment Policy before commenting.