Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Disable comment should apply to the next line of source code #36

Open
backus opened this issue Feb 3, 2017 · 1 comment
Open

Disable comment should apply to the next line of source code #36

backus opened this issue Feb 3, 2017 · 1 comment

Comments

@backus
Copy link
Collaborator

backus commented Feb 3, 2017

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
Copy link
Collaborator Author

backus commented Feb 3, 2017

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant