Title: Configurable ParameterDescription Placement and Section Requirements in PSProvideCommentHelp · Issue #2133 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Configurable ParameterDescription Placement and Section Requirements in PSProvideCommentHelp · Issue #2133 · PowerShell/PSScriptAnalyzer
X Title: Configurable ParameterDescription Placement and Section Requirements in PSProvideCommentHelp · Issue #2133 · PowerShell/PSScriptAnalyzer
Description: Summary of the new feature As a user of PSScriptAnalyzer, I want to be able to configure where ParameterDescription comments appear and enforce required help sections (with optional order enforcement) in the PSProvideCommentHelp rule, so...
Open Graph Description: Summary of the new feature As a user of PSScriptAnalyzer, I want to be able to configure where ParameterDescription comments appear and enforce required help sections (with optional order enforceme...
X Description: Summary of the new feature As a user of PSScriptAnalyzer, I want to be able to configure where ParameterDescription comments appear and enforce required help sections (with optional order enforceme...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2133
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Configurable ParameterDescription Placement and Section Requirements in PSProvideCommentHelp","articleBody":"**Summary of the new feature**\n\nAs a user of PSScriptAnalyzer, I want to be able to configure where ParameterDescription comments appear and enforce required help sections (with optional order enforcement) in the PSProvideCommentHelp rule, so that I can align documentation with my project's standards and ensure consistency.\n\n**Proposed technical implementation details (optional)**\n\n1. **Configurable ParameterDescription Placement**\n - Add a new configuration option for PSProvideCommentHelp called `ParameterDescriptionPlacement` with two possible values:\n - `WithCommentHelp` (default): Parameter descriptions are included in the comment help block as today.\n - `InParamBlock`: Parameter descriptions are placed as inline comments in the param block itself.\n - The setting would control where parameter docs are generated and where the rule expects to find them.\n\n2. **Required Sections and Order Enforcement**\n - Add a configuration option called `RequiredSections`, accepting an array of section names (e.g., `[\"Synopsis\", \"Description\", \"Parameters\"]`).\n - Add a boolean configuration option `RequiredSectionsOrderMatters` (default: `false`). If set to `true`, the order of the sections in the array is enforced in the help comment, and the rule will fail if the order is incorrect.\n - If `RequiredSectionsOrderMatters` is false, presence of all required sections is enforced, but order is not.\n\nThese options would give users more flexibility in how comment-based help is structured and validated.\n\n**What is the latest version of PSScriptAnalyzer at the point of writing**\n\n2024.6.0 (or latest at time of filing)\n","author":{"url":"https://github.com/MariusStorhaug","@type":"Person","name":"MariusStorhaug"},"datePublished":"2025-10-12T21:06:17.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/2133/PSScriptAnalyzer/issues/2133"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:780a3590-7c0f-927e-a113-fb274515e53c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 87EC:122F3D:40913B0:5650AA0:6964CD40 |
| html-safe-nonce | d31ddd5cf354f8b607ea7674df644921bf74e62d5a2eed5306e03478fb85eacd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4N0VDOjEyMkYzRDo0MDkxM0IwOjU2NTBBQTA6Njk2NENENDAiLCJ2aXNpdG9yX2lkIjoiNjg2MzA4ODc1OTg1OTM2NzIzMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9e20f4b52f66c1626bba2d29d2e2504d48cb0b2b3c873d78edebe6205a7b8228 |
| hovercard-subject-tag | issue:3507868242 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PSScriptAnalyzer/2133/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5919d95737ea9efa0be043c058257fcaa1bffb4a2b997c0e1b0fedb5b833507b/PowerShell/PSScriptAnalyzer/issues/2133 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5919d95737ea9efa0be043c058257fcaa1bffb4a2b997c0e1b0fedb5b833507b/PowerShell/PSScriptAnalyzer/issues/2133 |
| og:image:alt | Summary of the new feature As a user of PSScriptAnalyzer, I want to be able to configure where ParameterDescription comments appear and enforce required help sections (with optional order enforceme... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MariusStorhaug |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5838582163a1256e5ebd5086b7e1dc5cea93d82086c9c8b1395fb50f6ddab28d |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PSScriptAnalyzer git https://github.com/PowerShell/PSScriptAnalyzer.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 33149177 |
| octolytics-dimension-repository_nwo | PowerShell/PSScriptAnalyzer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 33149177 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PSScriptAnalyzer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8f997e7f84bd1db9537ba403fa68be0da3423594 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width