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

Apply analyzer (StyleCop) auto-fixes #5337

Merged
merged 2 commits into from
Oct 17, 2022

Conversation

bdukes
Copy link
Contributor

@bdukes bdukes commented Oct 15, 2022

Summary

I ran Code Cleanup from Visual Studio 2022 with the Fix analyzer warnings and errors set in EditorConfig option, and then resolved a couple of issues it created. I've closely reviewed and tweaked about half of the files.

It primarily adjusting naming conventions (removing underscores, making arguments and privates lowercase).

I also fixed an incorrect reference of SharpZipLib in Dnn.PersonaBar.Extensions (not sure why it wasn't causing trouble before).

@bdukes
Copy link
Contributor Author

bdukes commented Oct 15, 2022

I generated an API diff (which helped me track down places where public or protected members had been renamed), the only API changes are to the casing of argument names (which we've previously been okay with doing outside of a major release).

diff.html.md

@bdukes
Copy link
Contributor Author

bdukes commented Oct 15, 2022

Previous build: 25,628 warnings
This build: 19,788 warnings

Copy link
Contributor

@valadas valadas left a comment

Choose a reason for hiding this comment

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

Awesome

@valadas valadas merged commit 3c65acf into dnnsoftware:develop Oct 17, 2022
@bdukes bdukes deleted the analyzer-fixes branch October 21, 2022 14:46
bdukes added a commit to bdukes/Dnn.Platform that referenced this pull request Nov 11, 2022
PR dnnsoftware#5337 implemented auto-fixes for style issues, but the renaming of
backing fields sometimes caused a conflict which resulted in the
property becoming recursive
donker pushed a commit that referenced this pull request Nov 11, 2022
PR #5337 implemented auto-fixes for style issues, but the renaming of
backing fields sometimes caused a conflict which resulted in the
property becoming recursive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants