The project is in a healthy, maintained state
Code styling for my projects
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

My rubocop setup

Config in ./config

Installation

Add rubocop-rickselby to your Gemfile:

group :development, :test do
  gem "rubocop-rickselby", "~> 0.14", require: false
end

Inherit the desired configuration in your .rubocop.yml:

# .rubocop.yml
inherit_gem:
  rubocop-rickselby:
    - config/default.yml # generic Ruby rules and cops
    - config/capybara.yml # capybara-specific rules and cops
    - config/factory_bot.yml # factory_bot-specific rules and cops
    - config/rails.yml # Rails-specific rules and cops
    - config/rspec.yml # RSpec-specific rules and cops
    - config/rspec_rails.yml # RSpec-specific rules and cops for rails
    - config/sequel.yml # sequel-specific rules and cops

You can override cops in your own local .rubocop.yml file as required.

erb-lint

Config is also available for https://github.com/Shopify/erb-lint.

Add a local .erb-lint.yml file to your project:

---
exclude:
  - 'node_modules/**/*'
  - 'vendor/**/*'
inherit_gem:
  rubocop-rickselby:
    - config/erb-lint.yml

The default file path is **/*.html{+*,}.erb - this can be changed with a glob setting in .erb-lint.yml, e.g.

---
glob: "**/*.erb"

Releasing

  1. Run the Prepare release GitHub Actions workflow with the new X.Y.Z version. It creates a pull request that updates the version, lockfile, and promotes the Unreleased changelog entries; enter optional Markdown release notes if there are no Unreleased entries.
  2. Merge that pull request, then in GitHub use Releases → Draft a new release to create and publish the matching vX.Y.Z tag on main.
  3. The tag-triggered release workflow verifies the metadata, runs the checks, and publishes the gem.

RubyGems trusted publishing must be configured once for the rickselby/rubocop-rickselby repository and .github/workflows/release.yml. The workflow uses the GitHub release environment; configure it with required reviewers before the first release.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/rickselby/rubocop-rickselby.

License

The gem is available as open source under the terms of the MIT License.