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: patch-diff.githubusercontent.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:d817365f-f1df-bdee-0bec-44e3c9cea9cf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A266:3EEE18:BE5763:FE1975:696EE57E |
| html-safe-nonce | 7e9c0c9db2e54640161f56654250e8e2bb741cf9c998e686e0155baa633f36f2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjY2OjNFRUUxODpCRTU3NjM6RkUxOTc1OjY5NkVFNTdFIiwidmlzaXRvcl9pZCI6IjY0OTQyODQ1MzA5NDczODQ3MDIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 425c7ae88822cc89f30d6773458b03b312fdfc76acc3404594e254a072b9d026 |
| 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 | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| 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 | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width