SonarLint issue severity

I am not a Visual Studio expert, but it is mentioned in this other thread that you can configure projects to “treat warnings as errors”. Would this fit your requirement?