RuboCop – Ruby static code analyzer and formatter

RuboCop is a Ruby static code analyzer (a.k.a. linter) and code formatter. Out of the box it will enforce many of the guidelines outlined in the community Ruby Style Guide. Apart from reporting the problems discovered in your code, RuboCop can also automatically fix many of them for you.

RuboCop is extremely flexible and most aspects of its behavior can be tweaked via various configuration options.

This is free and open source software.

Key Features

  • Works with every major Ruby implementation.
  • Autocorrection of many of the code offenses it detects.
  • Robust code formatting capabilities.
  • Multiple result formatters for both interactive use and for feeding data into other tools.
  • Ability to have different configuration for different parts of your codebase.
  • Ability to disable certain cops only for specific files or parts of files.
  • Extremely flexible configuration that allows you to adapt RuboCop to pretty much every style and preference.
  • It’s easy to extend RuboCop with custom cops and formatters.
  • A vast number of ready-made extensions (e.g. rubocop-rails, rubocop-rspec, rubocop-performance and rubocop-minitest).
  • Wide editor/IDE support.

Website: github.com/rubocop/rubocop
Support:
Developer: Bozhidar Batsov
License: MIT License

RuboCop 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
BrakemanStatic analysis tool
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.


Best Free and Open Source Software Explore our comprehensive directory of recommended free and open source software. Our carefully curated collection spans every major software category.

This directory is part of our ongoing series of informative articles for Linux enthusiasts. It features hundreds of detailed reviews, along with open source alternatives to proprietary solutions from major corporations such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

You’ll also find interesting projects to try, hardware coverage, free programming books and tutorials, and much more.

Discovered a useful open source Linux program that we haven’t covered yet? Let us know by completing this form.
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted