How to make rubocop be more versatile

This page summarizes the projects mentioned and recommended in the original post on /r/ruby

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • rubocop

    A Ruby static code analyzer and formatter, based on the community Ruby style guide.

  • 1) Many cops have configurable attributes. See for example Layout/SpaceInsideParens. You could open a merge request to add configurable attributes to other cops like Layout/SpaceInsidePercentLiteralDelimiters - as long as the default behaviour stays the same, it will probably get accepted. I do suggest opening an issue with a detailed list of what attributes you would like to add to which cops first, and getting a green light from a maintainer. Check the Contributing section on the website, which also contains a link to the contribution guidelines.

  • rubocop-rake

    A RuboCop plugin for Rake

  • 2) You can create your own rubocop extension with your own cops. See the Extensions docs. This can take the form of files in your application, or your own custom gem. Have a look at e.g. rubocop-rake.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts