Skip to content

Custom formatter in external cop extension #9697

Answered by koic
renjiexu asked this question in Q&A
Discussion options

You must be logged in to vote

It is possible to specify gem name instead of relative path. Alternatively, require can be specified in .rubocop.yml as shown below.

# .rubocop.yml
require:
  - ../my/custom/file.rb
  - rubocop-extension

How to use rubocop-performance may be helpful.
https://github.com/rubocop/rubocop-performance#usage

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@renjiexu
Comment options

Answer selected by renjiexu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants