Is there a way I can set up Visual Studio 2019 builds to fail if there are any SonarQube warnings reported by SonarLint?

I’m ONLY intersted in SonarLint/SonarQube warnings. I’m aware that the project has a setting for “Treat warnings as errors” but if i set this to all then it will include non SQ warnings. I can specify the warnings but does that mean I have to list every single “S####” error code?

Is there a better way to accomplish this?