If there are many solution files:
Create a new editorConfig file, and set
root = true
dotnet_diagnostic.IDE0005.severity = error