rubocop

rubocop is a linter for Ruby.

You can enable the rubocop linter with:

trunk check enable rubocop

Auto Enabling

rubocop will be auto-enabled if a .rubocop.yml config file is present.

Settings

rubocop supports the following config files:

  • .rubocop.yml

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info.

Last updated