Skip to content

Label the permissions in the help, and fail the check on holes - #2

Merged
simon-vedder merged 1 commit into
mainfrom
fix/command-reference-hardening
Sep 10, 2026
Merged

simon-vedder merged 1 commit into
mainfrom
fix/command-reference-hardening

Conversation

@simon-vedder

Copy link
Copy Markdown
Owner

The permissions were in .NOTES under the heading Required permissions. The standard label is RequiredPermissions, which is what the table renderer keys on — so the site rendered four paragraphs where the credential rotation pages render a table.

Relabelled, with the rest of the block given its own labels instead of being absorbed into the permissions row: Prerequisites, Writes, License. No permission changed.

The generator gets the same hardening as powershell-tool-skeleton#3: an empty examples array rendered an empty ### Example 1, an undocumented parameter rendered an empty table cell, and neither failed anything. All three now fail -Check. A .NOTES block that opens with prose is left as prose rather than losing its first paragraph.

Verified: -Check clean, PSScriptAnalyzer clean.

The permissions were in the .NOTES block under the heading "Required
permissions". The standard label is RequiredPermissions, which is what the
generator's table renderer keys on, so the site rendered four paragraphs where
the credential rotation pages render a table.

Relabelled, with the rest of the block given labels of its own rather than being
absorbed into the permissions row: Prerequisites, Writes, License. No permission
changed; the wording is the same text under headings the tooling understands.

The generator gets the same hardening as the skeleton. An empty examples array
rendered an empty "### Example 1", an undocumented parameter rendered an empty
table cell, and neither failed anything. Both, and a .NOTES block without
RequiredPermissions, now fail -Check. A .NOTES block that opens with prose is
left as prose rather than losing its first paragraph to the table.
@simon-vedder
simon-vedder merged commit b838c23 into main Sep 10, 2026
1 check passed
@simon-vedder
simon-vedder deleted the fix/command-reference-hardening branch September 10, 2026 09:19
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.

1 participant