maasha maasha - 1 year ago 148
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 Source

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

# rubocop:disable Metrics/AbcSize
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download