8000 Cleanup Format-Hex by vexx32 · Pull Request #8683 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Conversation

@vexx32
Copy link
Collaborator
@vexx32 vexx32 commented Jan 18, 2019

PR Summary

Cleanup for code style prior to #8674

/cc @iSazonov ❤️

PR Context

Format-Hex can use a little love in the style department. Added some XML comments that were missing, tidied up existing ones, and made sure the code style overall is consistent with how we've been doing in recent PRs according to StyleCop and other linters.

PR Checklist

}
}
catch (IOException ioException)
catch (IOException fileException)
Copy link
Collaborator

Choose a reason for hiding this comment

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

It is not always true :-) Please revert.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

CodeFactor complained that the io prefix looks too much like a Hungarian prefix, from memory. Is this simply not a concern?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We frequently use catch (IOException e).
(I guess we will disable the check.)

@iSazonov iSazonov requested a review from SteveL-MSFT January 18, 2019 15:08
@iSazonov iSazonov added the CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log label Jan 18, 2019
@iSazonov iSazonov self-assigned this Jan 18, 2019
Copy link
Member
@daxian-dbw daxian-dbw left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @vexx32 !

@iSazonov iSazonov merged commit 631833c into PowerShell:master Jan 18, 2019
@iSazonov iSazonov changed the title Cleanup: Format-Hex Cleanup Format-Hex Jan 18, 2019
@vexx32 vexx32 deleted the Style/FormatHex branch January 22, 2019 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CL-CodeCleanup Indicates that a PR should be marked as a Code Cleanup change in the Change Log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0