Title: Feature request: Mark specific lines or blocks to ignore for specific rules · Issue #849 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Feature request: Mark specific lines or blocks to ignore for specific rules · Issue #849 · PowerShell/PSScriptAnalyzer
X Title: Feature request: Mark specific lines or blocks to ignore for specific rules · Issue #849 · PowerShell/PSScriptAnalyzer
Description: Like pragma in c# can disable a warning for a line and then enable it again. As an example, I've got a few variables that are used to within Invoke-Expression's, and the script analyzer flags them as unused variables but they are actuall...
Open Graph Description: Like pragma in c# can disable a warning for a line and then enable it again. As an example, I've got a few variables that are used to within Invoke-Expression's, and the script analyzer flags them ...
X Description: Like pragma in c# can disable a warning for a line and then enable it again. As an example, I've got a few variables that are used to within Invoke-Expression's, and the script analyzer fla...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/849
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature request: Mark specific lines or blocks to ignore for specific rules","articleBody":"Like pragma in c# can disable a warning for a line and then enable it again. \r\n\r\nAs an example, I've got a few variables that are used to within Invoke-Expression's, and the script analyzer flags them as unused variables but they are actually used. I dont want to ignore the rule for the entire script, just these few variables. \r\n\r\nIs there a way to do this?","author":{"url":"https://github.com/StingyJack","@type":"Person","name":"StingyJack"},"datePublished":"2018-01-18T20:45:06Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/849"}
| 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:2d2df12c-5f7f-228c-f451-8e6d3ba06775 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AAE4:21E491:42E1:54F9:6AFCF89E |
| html-safe-nonce | b523dc6d8a3d1681c3a214824a8913666bd437e843bf8b4d352852ee6ecb79b1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUU0OjIxRTQ5MTo0MkUxOjU0Rjk6NkFGQ0Y4OUUiLCJ2aXNpdG9yX2lkIjoiMjc2OTMzMTEwODIyMTYxNDIzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8b497b4ccc5e17abbd9c1b5a97f57aa2bc8f2d44b05e4d9bea96eb1886f88402 |
| hovercard-subject-tag | issue:289769514 |
| 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/849/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fd436cf64886e6ef058dcafe0d0cb9dceae914804923016d95bc0c3a4d3e1c94/PowerShell/PSScriptAnalyzer/issues/849 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fd436cf64886e6ef058dcafe0d0cb9dceae914804923016d95bc0c3a4d3e1c94/PowerShell/PSScriptAnalyzer/issues/849 |
| og:image:alt | Like pragma in c# can disable a warning for a line and then enable it again. As an example, I've got a few variables that are used to within Invoke-Expression's, and the script analyzer flags them ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | StingyJack |
| hostname | github.com |
| expected-hostname | github.com |
| None | cfabad6ee26d2b84c7afef4ae0cc71b8b692fb9d66f9f15997652ef991bfd3f4 |
| 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 | 35f85b78676038389558a41adf8d76e474592ede |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width