0.0
No release in over 3 years
A set of custom cops to use on AI generated code.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Runtime

>= 1.1.0
>= 1.82.1
>= 0.7.1
 Project Readme

RuboCop::Vibe Build Status

A set of custom cops to use on AI-generated code.

I have a preferred style of Ruby whether I'm vibe coding or not, so this library is meant to handle the easy formatting scenarios that I often find myself manually correcting. I plan to add to this over time anytime AI-generated code isn't to my preference.

And if it's not obvious, I am almost vibe coding this library, since I do skim the changes, review the test scenarios, and test it on personal projects.

Installation

Just install the rubocop-vibe library.

$ gem install rubocop-vibe

Or, if you use Bundler, put this in your Gemfile.

gem "rubocop-vibe", require: false

Usage

You need to tell RuboCop to load the extension:

RuboCop configuration file

Put this into your .rubocop.yml.

plugins: rubocop-vibe

Alternatively, use the following array notation when specifying multiple extensions.

plugins:
  - rubocop-other-extension
  - rubocop-vibe

Now you can run rubocop and it will automatically load the cops together with the standard cops.

The Cops

All cops are located under lib/rubocop/cop/vibe and contain examples/documentation.

In your .rubocop.yml, you may treat the cops just like any other cop. For example:

Vibe/ClassOrganization:
  Exclude:
    - lib/example.rb

License

rubocop-vibe uses the MIT license. See LICENSE for more details.