让我们考虑以下课程:
class App
def call
# ...
end
private
def foo
# ...
end
def bar
# ...
end
end
rubocop
高于15时是否可以将所有方法的Metrics/AbcSize
配置为“投诉” Assignment Branch Condition size
?
对于call
方法,仅当call
大于30时才应“抱怨”。
提前感谢。
RuboCop不支持此功能。您对代码的不同部分不能有不同的限制。