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

Enforce and address code style issues #944

Merged
merged 28 commits into from
Jan 24, 2023
Merged

Conversation

atifaziz
Copy link
Member

@atifaziz atifaziz commented Jan 24, 2023

Code style analysis was already configured to be enforced:

<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>

However, this PR:

  • sets up the severity such that they are truly enforced through warnings/errors,
  • addresses identified issues in the current code base, and
  • configures individual styles as needed

Many formatting inconsistencies and issue were addressed by temporarily setting the severity of the IDE0055 rule to warning before settling on suggestion (because unfortunately many IDE0055 issues trigger on code deliberately formatted for improving readability).

Conflicts resolved:

- MoreLinq.Test/TestExtensions.cs
- MoreLinq/CountDown.cs
@atifaziz atifaziz self-assigned this Jan 24, 2023
@codecov
Copy link

codecov bot commented Jan 24, 2023

Codecov Report

Merging #944 (9324398) into master (9c17aae) will decrease coverage by 0.02%.
The diff coverage is 95.87%.

@@            Coverage Diff             @@
##           master     #944      +/-   ##
==========================================
- Coverage   92.41%   92.39%   -0.02%     
==========================================
  Files         112      112              
  Lines        3442     3434       -8     
  Branches     1023     1021       -2     
==========================================
- Hits         3181     3173       -8     
  Misses        199      199              
  Partials       62       62              
Impacted Files Coverage Δ
MoreLinq/Delegating.cs 90.47% <ø> (ø)
MoreLinq/Lookup.cs 61.87% <ø> (ø)
MoreLinq/SequenceException.cs 25.00% <0.00%> (ø)
MoreLinq/Transpose.cs 97.05% <ø> (ø)
MoreLinq/AssertCount.cs 96.42% <90.90%> (ø)
MoreLinq/PadStart.cs 97.77% <95.00%> (ø)
MoreLinq/AggregateRight.cs 100.00% <100.00%> (ø)
MoreLinq/Backsert.cs 96.55% <100.00%> (ø)
MoreLinq/CountDown.cs 90.00% <100.00%> (ø)
MoreLinq/CountMethods.cs 100.00% <100.00%> (ø)
... and 29 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@atifaziz atifaziz merged commit 5b49471 into morelinq:master Jan 24, 2023
@atifaziz atifaziz deleted the code-style branch January 24, 2023 20:14
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.

2 participants