Title: ScriptAnalyzer is missing a lot of warnings · Issue #2280 · PowerShell/PowerShellEditorServices · GitHub
Open Graph Title: ScriptAnalyzer is missing a lot of warnings · Issue #2280 · PowerShell/PowerShellEditorServices
X Title: ScriptAnalyzer is missing a lot of warnings · Issue #2280 · PowerShell/PowerShellEditorServices
Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this issue is with PowerShell Editor Services...
Open Graph Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ...
X Description: Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ...
Opengraph URL: https://github.com/PowerShell/PowerShellEditorServices/issues/2280
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ScriptAnalyzer is missing a lot of warnings","articleBody":"### Prerequisites\n\n- [x] I have written a descriptive issue title.\n- [x] I have searched all [_open and closed_ issues](https://github.com/PowerShell/PowerShellEditorServices/issues?q=is%3Aissue) to ensure it has not already been reported.\n- [x] I have read the [troubleshooting](https://github.com/PowerShell/vscode-powershell/blob/main/docs/troubleshooting.md) guide.\n- [x] I am sure this issue is with _PowerShell Editor Services itself_ and does not reproduce in a standalone [PowerShell](https://github.com/PowerShell/PowerShell/issues/new/choose) instance, and is not an issue with my editor.\n- [x] I have verified that I am using the latest version of PowerShell Editor Services.\n- [x] If this is a security issue, I have read the [security issue reporting guidance](https://github.com/PowerShell/vscode-powershell/blob/main/SECURITY.md).\n\n### Summary\n\nI've been using PSScriptAnalyzer (1.25.0) from the PowerShell command line on an individual file like:\n`Invoke-ScriptAnalyzer .\\foo.ps1`\n\nI'm getting warnings for rules: `PSAvoidShouldContinueWithoutForce`, `PSAvoidUsingInvokeExpression`, `PSReviewUnusedParameter`, `PSShouldProcess` and `PSUseSingularNouns`\n\nNow, I've been running PowerShellEditorServices LSP (latest version) in my editor on that same file but I'm not getting any of these warnings reported. And yes the LSP is working because it reported other types of errors/warnings normally.\n\nMy question is, is it possible to modify the default settings or rules included? Or is it a bug somewhere?\n\n### PowerShell Version\n\n```console\nC:\\Users\\grolongo\u003e $PSVersionTable\n\nName Value\n---- -----\nPSVersion 7.5.5\nPSEdition Core\nGitCommitId 7.5.5\nOS Microsoft Windows 10.0.22631\nPlatform Win32NT\nPSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}\nPSRemotingProtocolVersion 2.3\nSerializationVersion 1.1.0.1\nWSManStackVersion 3.0\n```\n\n### Editor Version\n\n```console\nEmacs version: 30.2 (latest stable)\n\nLSP client setup is really simple:\n(use-package powershell :ensure t :demand t)\n\nthen to install the LSP server:\nM-x powershell-install-langserver\n\nEglot connects successfully.\n```\n\n### PowerShell Editor Services Version\n\n```console\nModuleVersion = '4.5.0'\n```\n\n### Steps to Reproduce\n\n1. create a ps1 file and write a simple function with a plural noun like `Install-Programs`\n2. run PSScriptAnalyzer: `Invoke-ScriptAnalyzer .\\foo.ps1` -\u003e `PSUseSingularNouns` warning reported\n3. open the same file in your editor with LSP on -\u003e no warning reported\n\n### Visuals\n\n_No response_\n\n### Logs\n\n_No response_","author":{"url":"https://github.com/grolongo","@type":"Person","name":"grolongo"},"datePublished":"2026-04-17T18:38:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/2280/PowerShellEditorServices/issues/2280"}
| 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:de25ef8a-45b1-1648-e246-692f39fd3584 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8994:3A04D8:9A3ED1:DF3DA1:6A574242 |
| html-safe-nonce | c2fa593c9e46ac63a91f3b861adcdf38a2900b1a2dd17cb24c2082fc4e9790b9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4OTk0OjNBMDREODo5QTNFRDE6REYzREExOjZBNTc0MjQyIiwidmlzaXRvcl9pZCI6IjMwMjcyOTAwMzA4NzQyNDc3NDYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 37f574aa4f2def59d78f676587dfe4d77e13339696acbb16c94e76f7762b41f9 |
| hovercard-subject-tag | issue:4284626366 |
| 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/PowerShellEditorServices/2280/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3349d4dc61d2878ab3cb1fb76099fe26d8d38b434b53ca64b64e62fe833c5740/PowerShell/PowerShellEditorServices/issues/2280 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3349d4dc61d2878ab3cb1fb76099fe26d8d38b434b53ca64b64e62fe833c5740/PowerShell/PowerShellEditorServices/issues/2280 |
| og:image:alt | Prerequisites I have written a descriptive issue title. I have searched all open and closed issues to ensure it has not already been reported. I have read the troubleshooting guide. I am sure this ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | grolongo |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4e7a7296a3830877cf21a6ad2a972c9e618a48915e03966cf0c53eb08e5aad98 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShellEditorServices git https://github.com/PowerShell/PowerShellEditorServices.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 36031537 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShellEditorServices |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36031537 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShellEditorServices |
| 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 | 2576d1f0198cf1588faf2edf27f1ed120903be10 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width