33

I would like to silence a specific Rubocop warning:

Assignment Branch Condition size for plot_defaults is too high. [21.05/15]

What is the appropriate syntax to do this in the code on a comment line like:

# rubocop: disable <???>

maasha
  • 1,926
  • 3
  • 25
  • 45

2 Answers2

58

I believe this is the message for the Metrics/AbcSize cop.

# rubocop:disable Metrics/AbcSize
Jeff Price
  • 3,229
  • 22
  • 24
10

On your Rubocop config

Metrics/AbcSize:
  Enabled: false
mpalencia
  • 5,481
  • 4
  • 45
  • 59