Title: Fix PSScriptAnalyzer warnings and errors · Issue #3791 · PowerShell/PowerShell · GitHub
Open Graph Title: Fix PSScriptAnalyzer warnings and errors · Issue #3791 · PowerShell/PowerShell
X Title: Fix PSScriptAnalyzer warnings and errors · Issue #3791 · PowerShell/PowerShell
Description: We should be PSScriptAnalyzer clean and any new PRs should pass PSScriptAnalyzer PS> $e = Get-ChildItem -Recurse -Include *.ps1,*.psm1 | ? { $_.fullname -notmatch "\\bin\\" } | % { Invoke-ScriptAnalyzer -Path $_ } PS> $e | Group-Object s...
Open Graph Description: We should be PSScriptAnalyzer clean and any new PRs should pass PSScriptAnalyzer PS> $e = Get-ChildItem -Recurse -Include *.ps1,*.psm1 | ? { $_.fullname -notmatch "\\bin\\" } | % { Invoke-ScriptAna...
X Description: We should be PSScriptAnalyzer clean and any new PRs should pass PSScriptAnalyzer PS> $e = Get-ChildItem -Recurse -Include *.ps1,*.psm1 | ? { $_.fullname -notmatch "\\bin\\" } | % { Inv...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/3791
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fix PSScriptAnalyzer warnings and errors","articleBody":"We should be PSScriptAnalyzer clean and any new PRs should pass PSScriptAnalyzer\r\n\r\n```powershell\r\nPS\u003e $e = Get-ChildItem -Recurse -Include *.ps1,*.psm1 | ? { $_.fullname -notmatch \"\\\\bin\\\\\" } | % { Invoke-ScriptAnalyzer -Path $_ }\r\nPS\u003e $e | Group-Object severity\r\n\r\nCount Name Group\r\n----- ---- -----\r\n 1528 Warning {Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord, Microsoft.Win...\r\n 20 Error {Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord, Microsoft.Win...\r\n 129 Information {Microsoft.Windows.PowerShell.ScriptAnalyzer.Generic.DiagnosticRecord, Microsoft.Win...\r\n```","author":{"url":"https://github.com/SteveL-MSFT","@type":"Person","name":"SteveL-MSFT"},"datePublished":"2017-05-16T16:35:11.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":9},"url":"https://github.com/3791/PowerShell/issues/3791"}
| 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:bb7748a2-9785-c0dc-199a-24e711be1705 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 802A:B66A9:4E163B:6B81E7:6A57D308 |
| html-safe-nonce | 7815fb2b2a012e2d3b5202dd310396b9811aafcd98d103dc33b9230c7dde464d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDJBOkI2NkE5OjRFMTYzQjo2QjgxRTc6NkE1N0QzMDgiLCJ2aXNpdG9yX2lkIjoiNTU2NzM5MDczMTE4OTM0Mjk4NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a64da61e91dac528880b51bc615b6f09b84139436ee849fb81b3c51f2381abe6 |
| hovercard-subject-tag | issue:229095682 |
| 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/PowerShell/3791/issue_layout |
| twitter:image | https://opengraph.githubassets.com/20558055c8fc728f354d7d9718683da83ddde03802416dc2c502e22d77482b3e/PowerShell/PowerShell/issues/3791 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/20558055c8fc728f354d7d9718683da83ddde03802416dc2c502e22d77482b3e/PowerShell/PowerShell/issues/3791 |
| og:image:alt | We should be PSScriptAnalyzer clean and any new PRs should pass PSScriptAnalyzer PS> $e = Get-ChildItem -Recurse -Include *.ps1,*.psm1 | ? { $_.fullname -notmatch "\\bin\\" } | % { Invoke-ScriptAna... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SteveL-MSFT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 837767abbd14b05f219fd812ef2842c659968b63619e1b966dded83972ab5bca |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 9044d0f867aa9892268d1f430238ff123e11ee91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width