Exclude files from cpd/coverage/analysis by adding a comment in a file directly

Hi, we’d like to exclude some files from the code coverage analysis which do not make sense to test yet (but later). These currently cause our pipeline to fail.
We don’t really want to add those files to the sonar-project.properties as people will forgot about the exclusions then.
What we’d prefer is adding a special comment in those files directly like you can do for linters, e.g. /* eslint-disable max-lines */

Hi @Novac,

Thanks for sharing this idea.
Can you please explain why these uncovered files fail your pipeline? Is it due to the Quality Gate that fails because of a low coverage?
If it’s the case, you might be looking for a way to ignore these files from the computation of the Quality Gate status.