maasha maasha - 4 months ago 39
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 <???>


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

# rubocop:disable Metrics/AbcSize