Is there a way to disable warning from reek
gem per method, per line or per block?
What we have for rubocop
for example
# suppress warning Use snake_case for method names
def fooBar(baz) # rubocop:disable Naming/MethodName
baz
end
this example will suppress warnings for rubocop, I'm looking something similar for reek
tool.
def foo(bar) # reek:disable TooManyStatements
baz = bar + bar
# other line
# more line
# that produce reek warning
baz
end
In documentation I found that it is configurable only by config file, but that's not what I'm looking for
https://github.com/troessner/reek/blob/master/docs/Smell-Suppression.md#how-to-disable-smell-detection