Title: Get-ScriptAnalyzerRule throws exception despite common parameter '-ErrorAction SilentlyContinue' is defined · Issue #1876 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Get-ScriptAnalyzerRule throws exception despite common parameter '-ErrorAction SilentlyContinue' is defined · Issue #1876 · PowerShell/PSScriptAnalyzer
X Title: Get-ScriptAnalyzerRule throws exception despite common parameter '-ErrorAction SilentlyContinue' is defined · Issue #1876 · PowerShell/PSScriptAnalyzer
Description: When running the command provided in the reproduce an exception is thrown. This is unexpected and undesirable. It would be great when exceptions could be silenced by specifying common parameter -ErrorAction SilentlyContinue. The document...
Open Graph Description: When running the command provided in the reproduce an exception is thrown. This is unexpected and undesirable. It would be great when exceptions could be silenced by specifying common parameter -Er...
X Description: When running the command provided in the reproduce an exception is thrown. This is unexpected and undesirable. It would be great when exceptions could be silenced by specifying common parameter -Er...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1876
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Get-ScriptAnalyzerRule throws exception despite common parameter '-ErrorAction SilentlyContinue' is defined","articleBody":"When running the command provided in the reproduce an exception is thrown. This is unexpected and undesirable.\r\n\r\nIt would be great when exceptions could be silenced by specifying common parameter `-ErrorAction SilentlyContinue`.\r\nThe documentation of this cmdlet describes _\\\u003cCommonParameters\\>_ can be used.\r\n\r\nSteps to reproduce\r\n------------------\r\n\r\n```PowerShell\r\nGet-ScriptAnalyzerRule -CustomRulePath C:\\someExistingPathWithoutPSSARules\\ -RecurseCustomRulePath -ErrorAction SilentlyContinue\r\n```\r\n\r\nExpected behavior\r\n-----------------\r\n\r\n```none\r\n#no output\r\n```\r\n\r\nActual behavior\r\n---------------\r\n\r\n```none\r\nGet-ScriptAnalyzerRule: Exception of type 'System.Exception' was thrown.\r\n```\r\n\r\nIf an unexpected error was thrown then please report the full error details using e.g. `$error[0] | Select-Object *`\r\n\r\nEnvironment data\r\n----------------\r\n\r\n\u003c!-- Provide the output of the following 2 commands -->\r\n\r\n```PowerShell\r\n> $PSVersionTable\r\nName Value\r\n---- -----\r\nPSVersion 7.3.1\r\nPSEdition Core\r\nGitCommitId 7.3.1\r\nOS Microsoft Windows 10.0.19042\r\nPlatform Win32NT\r\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\r\nPSRemotingProtocolVersion 2.3\r\nSerializationVersion 1.1.0.1\r\nWSManStackVersion 3.0\r\n\r\n> (Get-Module -ListAvailable PSScriptAnalyzer).Version | ForEach-Object { $_.ToString() }\r\n1.21.0\r\n```\r\n","author":{"url":"https://github.com/Marc013","@type":"Person","name":"Marc013"},"datePublished":"2022-12-16T16:25:40Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1876"}
| 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:9ba3180f-06b5-ad74-171b-632571421434 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B8DC:29E7C3:882FE:B7004:6AFCD764 |
| html-safe-nonce | ef90c99a169694a69b7bbd13cf012d4d4c491fbb3e2b6437aa5cebd0e33bc3fb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCOERDOjI5RTdDMzo4ODJGRTpCNzAwNDo2QUZDRDc2NCIsInZpc2l0b3JfaWQiOiI4NjkyMTYxODY3Nzc2MDU1MTQwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a44fd369165e17ccf31fea17da148904178718cbcbc6adbff6095a9908915f38 |
| hovercard-subject-tag | issue:1500512828 |
| 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/1876/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7698c1f15b6dc4bff954b6fc8c909efe487f138c7947115368c5b0997ee3c2f4/PowerShell/PSScriptAnalyzer/issues/1876 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7698c1f15b6dc4bff954b6fc8c909efe487f138c7947115368c5b0997ee3c2f4/PowerShell/PSScriptAnalyzer/issues/1876 |
| og:image:alt | When running the command provided in the reproduce an exception is thrown. This is unexpected and undesirable. It would be great when exceptions could be silenced by specifying common parameter -Er... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Marc013 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b5b7bc7e41e0a604bbdb5035c7ed9620c2d28b9c8a18747182e2262a75abfd91 |
| 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 | ff5022cc3aa767e6115451d9c322dd975506d40e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width