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

(Maint) Multiple formatting things #2528

Merged
merged 4 commits into from
Jun 24, 2022

Conversation

TheCakeIsNaOH
Copy link
Member

Description Of Changes

Four commits, four types of changes across the codebase. The changes only were applied to .cs files, there might be files with other extensions I missed.

  1. This fixes line endings in three files. They where a mix of LF and CRLF, now they are CRLF
  2. This adds BOMs to multiple files. Most .cs files already had a BOM, now they all do.
  3. This adds a trailing newline to multiple files. Most .cs files already had a trailing newline, now they all do.
  4. This removes trailing whitespace.

Motivation and Context

I was tired of fixing trailing whitespace one file at a time, let's fix it all at once. The other things came along for the ride.

Testing

This builds, and the automated tests pass, which helps confirm that I made no code changes, only formatting changes.

While reviewing this, it is probably easiest to review the diff commit by commit.

Change Types Made

  • Formatting
  • Bug fix (non-breaking change)
  • Feature / Enhancement (non-breaking change)
  • Breaking change (fix or feature that could cause existing functionality to change)

Related Issue

N/A, formatting

Change Checklist

  • Requires a change to the documentation
  • Documentation has been updated
  • Tests to cover my changes, have been added
  • All new and existing tests passed.
  • N/A PowerShell v2 compatibility checked.

@TheCakeIsNaOH TheCakeIsNaOH force-pushed the trailing-whitespace branch 2 times, most recently from 363f8b6 to bfe650d Compare March 15, 2022 16:15
This makes the line endings CRLF for three files that had inconsistent
line endings.
This adds a trailing new line to files that did not have one.
Most of the .cs files had a trailing new line, this makes it consistent
across all of the .cs files.
This adds BOMs to .cs files that did not have a BOM.
Most of them already had a BOM, this makes it consistent across the
codebase.
@gep13 gep13 force-pushed the trailing-whitespace branch from 29ea79d to 2456459 Compare June 24, 2022 20:17
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 28.527% when pulling 2456459 on TheCakeIsNaOH:trailing-whitespace into b2554df on chocolatey:develop.

Copy link
Member

@gep13 gep13 left a comment

Choose a reason for hiding this comment

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

LGTM!

@gep13 gep13 merged commit 89dc404 into chocolatey:develop Jun 24, 2022
@gep13
Copy link
Member

gep13 commented Jun 24, 2022

@TheCakeIsNaOH this was an amazing PR! Thanks for getting this done!

@TheCakeIsNaOH TheCakeIsNaOH deleted the trailing-whitespace branch June 30, 2022 19:13
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.

3 participants