Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable mutations for a parts of source code #791

Open
ligurio opened this issue Dec 15, 2020 · 2 comments
Open

Disable mutations for a parts of source code #791

ligurio opened this issue Dec 15, 2020 · 2 comments

Comments

@ligurio
Copy link
Contributor

ligurio commented Dec 15, 2020

It's a well-known practice for source code analyzers to suppress warnings for a part of source code (line or file).
It would be good to support such feature for Mull too. It would be helpful on regular mutation testing in a projects.

Related:

Clang-Tidy uses NOLINT, https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics
PVS Studio, https://www.viva64.com/en/m/0032/
Dextool uses "NOMUT" to annotate source code lines.

@AlexDenisov
Copy link
Member

Since Mull is working on a lower-level, I'm afraid we cannot use source-based annotations for that.
As a workaround, I can suggest using filters such as --include-path and --exclude-path. These include/exclude mutations for a file based on a regex.

@AlexDenisov
Copy link
Member

Just a follow up: that is possible and we'll have it as soon I'm done with JIT migration.

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

No branches or pull requests

2 participants