Closed ajurry closed 1 year ago
Hi @ajurry,
as described here, warning filters are not meant to ignore warnings (maybe we should rename the parameter to warningSelectors
). When you add warning filters, you tell the task to only look for warnings matching your filters.
Ignoring warnings is best done with the MSBuild or compiler flags (see here for more information). If you need to suppress your two MSBuild warnings, you can add the parameter /p:NoWarn=MSB3277,MSB3247
to your MSBuild/VSBuild step.
Ohhh... Thanks for this! I think renaming the parameter sounds like a good idea to me! I clearly just misread the documentation.
You're right that it's best to ignore the warnings at a build level, so I will update that build step. Feel free to close this issue, I am leaving it open incase you want to turn it into a ticket for updating the parameter.
Hi @ajurry,
I'm closing this issue now as I have (finally) renamed the parameters in the next version. I'll hopefully be able to release the new version by the end of this week.
Thanks for your feedback!
Describe the context
Describe the problem and expected behavior I'm currently trying to setup the BuildQualityChecks on my current build pipeline, to ignore two specific warnings, but it doesn't seem to work.
My current task is setup like the following, with the bonus entries for debugging issues.
The build job has the following warnings present
The basic output for BuildQualityChecks
In which it has found the three warnings, but seems to say that it succeeded, even though one of the warnings should cause this task to fail. Note, I have added a dummy warning by creating a test that should fail.
Other notes
MSB3277
, it passes even though it should definately fail, but succeedsAs a work around, I am planning to just set the warning limit to a specific number of warnings for the time being, which should cause the above task to fail.
If the above is just a small issue on my part, feel free to reply with a possible resolution and I give it a go!