Skip to content

aptible/dryer-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f7e9bb3 · Mar 11, 2025

History

12 Commits
Jan 4, 2023
Jan 4, 2023
Mar 11, 2025
Jan 4, 2023
Oct 30, 2023
Jan 4, 2023
Jan 4, 2023
Oct 26, 2023
Jan 4, 2023
Mar 1, 2023
Jan 4, 2023
Jan 4, 2023

Repository files navigation

dryer-lint

Aptible's baseline Rubocop configuration.

Usage

This is meant to be inherited from via a remote URL, as described here.

For example, if you have a non-Rails app, your Rubocop configuration should look something like this:

inherit_from:
  - https://raw.githubusercontent.com/aptible/dryer-lint/main/.rubocop.base.yml

AllCops:
  TargetRubyVersion: 3.1
  NewCops: enable
  Include:
    - !ruby/regexp /\.rb$/
    - !ruby/regexp /Gemfile$/
    - !ruby/regexp /\.gemspec$/
    - !ruby/regexp /\.rake$/
    - !ruby/regexp /Rakefile$/

If you are using Rails, the only change to the above is that you should also include the Rails configuration in the inherit_from (AllCops stays the same as above):

inherit_from:
  - https://raw.githubusercontent.com/aptible/dryer-lint/main/.rubocop.base.yml
  - https://raw.githubusercontent.com/aptible/dryer-lint/main/.rubocop.rails.yml

Testing

A Docker Compose configuration is included to make testing locally easier. To test, run docker compose build --pull --no-cache && docker compose run rubocop.

The GitHub Action for this repository mimics this behavior.

About

No description, website, or topics provided.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published