32

我想使特定的 Rubocop 警告静音:

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

在注释行的代码中执行此操作的适当语法是什么,例如:

# rubocop: disable <???>

4

2 回答 2

58

我相信这是给Metrics/AbcSize 警察的信息。

# rubocop:disable Metrics/AbcSize
于 2015-05-11T18:17:23.480 回答
10

在您的 Rubocop 配置中

Metrics/AbcSize:
  Enabled: false
于 2016-11-13T06:03:44.643 回答