PowerShell / PowerShell/PSScriptAnalyzer
Add Whitesmiths to the indentation style list.
Open
Nobody has claimed this yet.
Area - Formatter
Issue - Enhancement
- Dominant language
- C#
- Stars
- 2.2k
- Forks
- 415
- Avg merge
- 13h 1m
- Merged PRs (30d)
- 2
Description
howdy y'all,
i have problems seeing the normal indentation styles. for me, the best seems to be Whitesmiths where all the subordinate parts are indented.
if ($Thing -eq $OtherThing)
{
# do Thing_A
}
elseif ($Thing -lt $OtherThing)
{
# do Thing_B
}
else
{
# do Thing_C
}
the above is more clearly demarcated when compared to y'alls standard below ...
if ($Thing -eq $OtherThing) {
# do Thing_A
}
elseif ($Thing -lt $OtherThing) {
# do Thing_B
}
else {
# do Thing_C
}
in any case, thank you for looking into this! [grin]
take care,
lee
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no implementation file or test. Start by locating the indentation-style list and existing tests for supported styles, then determine how Whitesmiths is represented and verify that the new style is accepted and covered by the relevant test suite.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, powershell
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100