Title: [formatter] Comment to let formatter ignore contents · Issue #2151 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: [formatter] Comment to let formatter ignore contents · Issue #2151 · PowerShell/PSScriptAnalyzer
X Title: [formatter] Comment to let formatter ignore contents · Issue #2151 · PowerShell/PSScriptAnalyzer
Description: Summary of the new feature A common feature of formatter is to ignore formatting for rest of lines/range of lines with special comments. I propose this feature because formatting rules in pssa are rather bold, you can't get a finer contr...
Open Graph Description: Summary of the new feature A common feature of formatter is to ignore formatting for rest of lines/range of lines with special comments. I propose this feature because formatting rules in pssa are ...
X Description: Summary of the new feature A common feature of formatter is to ignore formatting for rest of lines/range of lines with special comments. I propose this feature because formatting rules in pssa are ...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2151
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[formatter] Comment to let formatter ignore contents","articleBody":"**Summary of the new feature**\n\nA common feature of formatter is to ignore formatting for rest of lines/range of lines with special comments.\nI propose this feature because formatting rules in pssa are rather bold, you can't get a finer control on the style, so ignoring certain part can save my code from being messed up.\n\n```ps1\n# ignore a range of lines\n\n# pssa: ignore format start\necho foo\necho bar\n# pssa: ignore format end\n\n# ignore the rest of lines\n\n# pssa: ignore format\necho foo\n```\n\n**Proposed technical implementation details (optional)**\n\n**What is the latest version of PSScriptAnalyzer at the point of writing**\n\nI don't know, I use powershell-editor-services","author":{"url":"https://github.com/sharpchen","@type":"Person","name":"sharpchen"},"datePublished":"2026-01-21T20:53:08Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/2151"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:fc155386-5f4d-ede6-9471-bd459262011e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C204:37EB8F:14D8C78:1D6A49E:6AFCE897 |
| html-safe-nonce | 0b82a4e96b0cad96326587ecbe2c3d75484af707319cc81f060835e6fdcb592a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMjA0OjM3RUI4RjoxNEQ4Qzc4OjFENkE0OUU6NkFGQ0U4OTciLCJ2aXNpdG9yX2lkIjoiNjIyMjQ5NTYyODkzMzI2MTQ2MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 082c08a6779447b8b31beac73078311d7cd9b3dbe81fa2bd33df69afa94a8ed6 |
| hovercard-subject-tag | issue:3839994516 |
| 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/2151/issue_layout |
| twitter:image | https://opengraph.githubassets.com/849ab6b8565ee1281b59df1866524b80a58f571868d21e1d7b60ce488cb46da8/PowerShell/PSScriptAnalyzer/issues/2151 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/849ab6b8565ee1281b59df1866524b80a58f571868d21e1d7b60ce488cb46da8/PowerShell/PSScriptAnalyzer/issues/2151 |
| og:image:alt | Summary of the new feature A common feature of formatter is to ignore formatting for rest of lines/range of lines with special comments. I propose this feature because formatting rules in pssa are ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sharpchen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| 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 | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width