How to silence Rubocop warning on Assignment Branch Condition?

maasha picture maasha · May 11, 2015 · Viewed 12.9k times · Source

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

Jeff Price picture Jeff Price · May 11, 2015

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

# rubocop:disable Metrics/AbcSize