mutest icon indicating copy to clipboard operation
mutest copied to clipboard

Disable comment should apply to the next line of source code

Open backus opened this issue 8 years ago • 1 comments

I intentionally didn't implement this before because I just wanted to get something simple out first to begin playing with it, but I've already run into a case where I was surprised because I had something like

# Method docs
#
# mutest:disable
# rubocop:disable Metrics/MethodLength
def foo
  blah
end

and the disable comment didn't apply because it currently just filters out the literal next line.

Opening this issue as a reminder of an easy and obvious improvement to add soon

backus avatar Feb 03 '17 23:02 backus

Realistically, until these support something like # mutest:disable NegateReceiver they should just be rewritten to use the same code path as ignore_subjects

backus avatar Feb 03 '17 23:02 backus