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

Cleanup guided by changes made in .editorconfig #2517

Merged
merged 16 commits into from Mar 4, 2024

Conversation

pauldendulk
Copy link
Member

No description provided.

@@ -252,5 +249,10 @@ insert_final_newline = true
dotnet_style_prefer_compound_assignment = true:suggestion
dotnet_code_quality_unused_parameters = all:suggestion

### dotnet_diagnostic
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The .editorconfig settings below had a lot of impact. What I wanted to change was to set 'unused usings' to error because I spend a lot of time fixing that afterwards. This change itself affected a lot of files.

A requirement however was to set GenerateDocumentationFile to true in the Directory.Build.props (seems unrelated but that is how it currently works). This generated a lot of errors on the documentation. It reported real errors, so it is definitely good to have this turned on. It will improve our API documentation. I had to suppress the missing xml comments error (set tot none) because that would be way too much work, also, I don't want it at this point where a lot is still changing.

I moved the fix formatting to group it with the other dotnet_diagnostic entries, en this resulted somehow in many more whitespace errors. Basically it never functioned properly before, even though it did detect quite a few whitespace errors, just not all.

// _param1 = TargetNs
// _param2 = Value of the type-attribute
"//xs:element[_PARAMCOMPWITHTARGETNS_(@type, $_param1, $_param2)]/@name";
private static readonly string _XPATH_GEOMETRY_ELEMREF_GEOMNAMEQUERY
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These .editorconfig changes were found by the server but not on my machine

@pauldendulk pauldendulk changed the title WIP updates following .editorconfig changes Code cleanup following .editorconfig changes Mar 4, 2024
@pauldendulk pauldendulk merged commit 50bd26e into main Mar 4, 2024
5 checks passed
@pauldendulk pauldendulk deleted the feature/cleanup-based-on-editor-config branch March 4, 2024 18:03
@pauldendulk pauldendulk changed the title Code cleanup following .editorconfig changes Cleanup guided by changes made in .editorconfig Mar 9, 2024
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.

None yet

1 participant