Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorganize .editorconfig (no changes to rule severities) #640

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

joem-msft
Copy link
Contributor

Problem

.editorconfig rules config line orderings have caused certiain rules to get skipped.

Solution

Changed the ordering in the editorconfig so settings are grouped and rule severities come after styling rules.
I then fixed existing code that did not comply with the rules.

Changes

Reorganize .editorconfig (no changes to rule severities)
This commit contains no actual changes to the rules; it's only a reordering of the different types of configuration settings.

  • Add comments to some rule codes to make them readable
  • Moved all styling, naming, convention rules first. Some IDEs have been known to only support the top-most .editorconfig file to have these
  • All rule severity configurations are grouped by kind:
    • .net styles
    • C# styles
    • Code-style Diagnostic Rules
    • Code Quality Diagnostic Rules
    • Style Cop Analyzer Diagnostic Rules
  • Address failures that got skipped due to conflicting editorconfig ordering

Validation

Addressed build failures and fixed unit tests.

@joem-msft joem-msft requested review from a team as code owners April 17, 2024 00:52
@joem-msft joem-msft enabled auto-merge (squash) April 17, 2024 01:15
This commit contains no actual changes to the rules; it's only a reordering of the different types of configuration settings.

- Add comments to some rule codes to make them readable
- Moved all styling, naming, convention rules first. Some IDEs have been known to only support the top-most .editorconfig file to have these
- All rule severity configurations are grouped by kind:
  - .net styles
  - C# styles
  - Code-style Diagnostic Rules
  - Code Quality Diagnostic Rules
  - Style Cop Analyzer Diagnostic Rules
@joem-msft joem-msft force-pushed the users/joemay/reorganize-editorconfig branch from 520091d to 8dcfc46 Compare April 17, 2024 18:22
@joem-msft joem-msft merged commit 19f6f71 into master Apr 18, 2024
4 checks passed
@joem-msft joem-msft deleted the users/joemay/reorganize-editorconfig branch April 18, 2024 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants