Skip to content

Cleanup Format-Hex - #8683

Merged
Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
vexx32:Style/FormatHex
Jan 18, 2019
Merged

Ilya (iSazonov) merged 2 commits into
PowerShell:masterfrom
vexx32:Style/FormatHex

Conversation

@vexx32

@vexx32 Rain Sallow (/u/ta11ow) (vexx32) commented Jan 18, 2019 •

Copy link
Copy Markdown
Collaborator

PR Summary

Cleanup for code style prior to #8674

/cc Ilya (@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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 Ilya (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 Ilya (iSazonov) self-assigned this Jan 18, 2019

@daxian-dbw Dongbo Wang (daxian-dbw) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@iSazonov
Ilya (iSazonov) merged commit 631833c into PowerShell:master Jan 18, 2019
@iSazonov Ilya (iSazonov) changed the title Cleanup: Format-Hex Cleanup Format-Hex Jan 18, 2019
@vexx32
Rain Sallow (/u/ta11ow) (vexx32) deleted the Style/FormatHex branch January 22, 2019 13:18
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj-contribs/PowerShell that referenced this pull request Aug 6, 2026
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