Skip to content

Apply analyzer (StyleCop) auto-fixes#5337

Merged
valadas merged 2 commits intodnnsoftware:developfrom
bdukes:analyzer-fixes
Oct 17, 2022
Merged

Apply analyzer (StyleCop) auto-fixes#5337
valadas merged 2 commits intodnnsoftware:developfrom
bdukes:analyzer-fixes

Conversation

@bdukes
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

bdukes commented Oct 15, 2022

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

Copy link
Copy Markdown
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