Skip to Content

Rails - Disable rubocop for specific directory

Posted on

If you want to disable rubocop for special directory, Rubocop has a config to support it:

# rubocop.yml

Metrics/BlockLength:
  Enabled: true
  Exclude:
    - test/**/*
comments powered by Disqus