-
Notifications
You must be signed in to change notification settings - Fork 909
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
Update editorconfig & fix warnings and errors appropriately #3417
Conversation
Kinda iffy on whether this needed an issue opened or not, if y'all want me to open an issue and re-tag stuff against it, let me know? |
9bcdd2e
to
57ef208
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
I think I am actually okay with this just going through as (maint) commits. They are logically broken up per rule that is being worked on, which made it super easy to review this! Thank you very much for getting this done! |
@vexx32 looks like at least one unit test is now failing as a result of the changes that you have made. Are you in a position to take a look at this, and get it fixed up? |
src/chocolatey.tests/infrastructure.app/nuget/ChocolateyNuGetProjectContextSpecs.cs
Outdated
Show resolved
Hide resolved
Following on from the team's meetings about code style preferences, updating the editorconfig to match the desired preferences.
This file we tend not to touch, so evaluating every style rule here is a bit pointless, especially as we want to try replacing this when we get an opportunity.
These overloads will be removed anyway, we don't need the warning noise from these.
Naming conventions
Use braces for if statements
Place using statements outside namespace block
Use auto-property
Simplify type names -> primitives keywords
Use var instead of explicit type
Simplify colleciton initialisation
Simplify null check
Require accessibility modifiers
Simplify object initialisation
unused method parameters
Avoid using `this`
Use block body for accessors
Use block body for properties
Just to tidy up the whitespace and everything, make everything neat and tidy and consistent.
57ef208
to
8d2425c
Compare
@vexx32 I am going to move forward with merging this PR, as the failing Docker Build is not related to the changes that you have made. |
@vexx32 thanks again for working through all these rules and fixing up all the required changes! |
Description Of Changes
Motivation and Context
Keep code looking good and consistent.
Testing
Operating Systems Testing
N/A
Change Types Made
Change Checklist
Related Issue
Fixes #