maasha maasha - 28 days ago 13
Ruby Question

How to silence Rubocop warning on Assignment Branch Condition?

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 <???>

Answer

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

# rubocop:disable Metrics/AbcSize