Hello @lxb,
The Scanner for .NET does not seem to properly pick up the settings in the .editorconfig
.
I have a created a ticket about your issue.
In the meantime, I would suggest to disable the rules by removing it from your quality profile on SonarQube Server since it can apply to your whole solution.
Otherwise, I hope that your workaround works for you while we get the time to fix this issue.
Whishing you a happy new year!