Enforce Code Quality in .NET: .editorconfig & Analyzers & Pre-Commit Hooks

Enforce code quality in .NET projects using TreatWarningsAsErrors, .editorconfig, SonarAnalyzer, Roslynator, and pre-commit hooks.