Title: Invoke-ScriptAnalyzer does not report a parse failure in a param() block caused by a missing parameter separator comma. · Issue #2192 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Invoke-ScriptAnalyzer does not report a parse failure in a param() block caused by a missing parameter separator comma. · Issue #2192 · PowerShell/PSScriptAnalyzer
X Title: Invoke-ScriptAnalyzer does not report a parse failure in a param() block caused by a missing parameter separator comma. · Issue #2192 · PowerShell/PSScriptAnalyzer
Description: Steps to reproduce param ( [string[]]$aszServers = @() [string]$fServerListFile = "" ) Expected behaviour Invoke-ScriptAnalyzer should report a parser-related error because the parameter list is malformed (missing comma between parameter...
Open Graph Description: Steps to reproduce param ( [string[]]$aszServers = @() [string]$fServerListFile = "" ) Expected behaviour Invoke-ScriptAnalyzer should report a parser-related error because the parameter list is ma...
X Description: Steps to reproduce param ( [string[]]$aszServers = @() [string]$fServerListFile = "" ) Expected behaviour Invoke-ScriptAnalyzer should report a parser-related error because the parameter ...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2192
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Invoke-ScriptAnalyzer does not report a parse failure in a param() block caused by a missing parameter separator comma.","articleBody":"## Steps to reproduce\n\n```powershell\nparam (\n [string[]]$aszServers = @()\n [string]$fServerListFile = \"\"\n)\n```\n\n## Expected behaviour\n\n`Invoke-ScriptAnalyzer` should report a parser-related error because the parameter list is malformed (missing comma between parameters).\n\n## Actual behaviour\n\nPowerShell detects the syntax error:\n\n```powershell\n> .\\Broken.ps1\n\nAt line:2 char:29\n+ [string[]]$aszServers = @()\n+ ~\nMissing ')' in function parameter list.\n```\n\nHowever:\n\n```powershell\n> Invoke-ScriptAnalyzer .\\Broken.ps1 -Severity Error\n```\n\nreturns nothing.\n\n## Environment data\n\n```\n$PSVersionTable\nName Value\n---- -----\nPSVersion 5.1.26100.8655\nPSEdition Desktop\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}\nBuildVersion 10.0.26100.8655\nCLRVersion 4.0.30319.42000\nWSManStackVersion 3.0\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\n\n\nPSScriptAnalyzer: 1.25.0\n```","author":{"url":"https://github.com/FabrizioMarana","@type":"Person","name":"FabrizioMarana"},"datePublished":"2026-07-17T20:06:53Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/2192"}
| 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:b4bdf152-3608-e314-3385-c6fb31f0334e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A440:3BB913:646AA:8A778:6AFCD9B6 |
| html-safe-nonce | acb775e3003d7c5d16d429aeb3767a9393d39eeabd07c976953490c478a7eafb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNDQwOjNCQjkxMzo2NDZBQTo4QTc3ODo2QUZDRDlCNiIsInZpc2l0b3JfaWQiOiI4MzIzNzYyODE2NDYyOTEzODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 597231a26262c134deb83ab44f0b5125710ba508134f8f1b14900b6fa4bf59cf |
| hovercard-subject-tag | issue:4914453307 |
| 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/2192/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cc54849e3a6343bcde14df66a3fb71360116c201d4e33dc953aef7a2168fdc90/PowerShell/PSScriptAnalyzer/issues/2192 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cc54849e3a6343bcde14df66a3fb71360116c201d4e33dc953aef7a2168fdc90/PowerShell/PSScriptAnalyzer/issues/2192 |
| og:image:alt | Steps to reproduce param ( [string[]]$aszServers = @() [string]$fServerListFile = "" ) Expected behaviour Invoke-ScriptAnalyzer should report a parser-related error because the parameter list is ma... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | FabrizioMarana |
| 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