Liam Peters

Results 6 issues of Liam Peters

## PR Summary - Added `PSAvoidTrailingWhitespace` to the list of rules considered by the formatter (an entry for the rule is still required in the `Rules` part of `settings`). Fixes...

## PR Summary Currently if an LParen `(` is the first token on a line and the next token is not a comment or new line, then the line's indentation...

## PR Summary The rule `PSAvoidAssignmentToAutomaticVariable` alerts when no assignment has taken place. It does so when `$true` or `$false` is used within the `ValidateSet` attribute of a parameter. Only...

## PR Summary PSScriptAnalyzer reports PSReservedParams as warning but according to the [documentation](https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/rules/reservedparams?view=ps-modules) it's an error. This PR makes the rule report as an error and fixes up tests that...

Issue - Bug

## PR Summary Hashtables with a single key-value pair should be ignored by `PSAlignAssignmentStatement` as there is nothing to align. There are other rules that handle whitespace around operators etc...

## PR Summary When `CheckParameter` is `$true` for the rule `PSUseConsistentWhitespace`, it checks whitespace between parameters by inspecting the AST. It gets all direct children of each `CommandAst` and checks,...