Title: Additional settings file for developement · Issue #2184 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: Additional settings file for developement · Issue #2184 · PowerShell/PSScriptAnalyzer
X Title: Additional settings file for developement · Issue #2184 · PowerShell/PSScriptAnalyzer
Description: Summary of the new feature There is currently one PSScriptAnalyzerSettings.psd1 file shipped with the PSScriptAnalyzer but there are at least two use cases with a different requirement: Design-time During this phase (often done is VSCode...
Open Graph Description: Summary of the new feature There is currently one PSScriptAnalyzerSettings.psd1 file shipped with the PSScriptAnalyzer but there are at least two use cases with a different requirement: Design-time...
X Description: Summary of the new feature There is currently one PSScriptAnalyzerSettings.psd1 file shipped with the PSScriptAnalyzer but there are at least two use cases with a different requirement: Design-time...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/2184
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Additional settings file for developement","articleBody":"**Summary of the new feature**\n\nThere is currently one `PSScriptAnalyzerSettings.psd1` file shipped with the PSScriptAnalyzer but there are at least two use cases with a different requirement:\n\n- **Design-time**\nDuring this phase (often done is VSCode or Visual Studio), any **cutting-edge** alert for a potential PowerShell pitfall is welcome.\n\n- **Continuous Integration**\nDuring this phase (e.g. in a CI/CD street), any change is supposed to passed the given tests.\n\nApparently, there is a (undocumented?) convention that [our convention is to ship it opt-in via `ConfigurableRule` with `Enable = false`](https://github.com/PowerShell/PSScriptAnalyzer/pull/2178#pullrequestreview-4231355124) but that convention only satisfies the **builder** phase.\n\n**Proposed technical implementation details (optional)**\n\nShip the PSScriptAnalyzer with an additional settings file that is focused on the **development** phase.\nThe \"development\" settings file might than be used as a default by e.g. VSCode (`powershell.scriptAnalysis.settingsPath`).\n\n#### Caveats\n\n* The settings file under VSCode \"*[This setting may not work as expected currently!](https://github.com/PowerShell/vscode-powershell/blame/0c03eb0fce3a37c3b47bad4f813dee6e47a4ce2e/package.json#L742)*\", see: https://github.com/PowerShell/vscode-powershell/issues/4653\n* https://github.com/PowerShell/vscode-powershell/issues/5385? \"[*Users keep getting bitten by the extension's effective defaults differing from Invoke-ScriptAnalyzer's defaults*](https://github.com/PowerShell/PSScriptAnalyzer/pull/2176#pullrequestreview-4223193225)\", I believe this isn't a feature but a bug, see: https://github.com/PowerShell/vscode-powershell/issues/5474\n\n**What is the latest version of PSScriptAnalyzer at the point of writing**\n\n` 1.25.0`\n","author":{"url":"https://github.com/iRon7","@type":"Person","name":"iRon7"},"datePublished":"2026-05-07T19:05:56Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/2184"}
| 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:7ea549bf-8e35-fb7a-c5d8-bfc41f5bec0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 993E:BB899:395DE6:4FFF2F:6AFCD750 |
| html-safe-nonce | 30b1fce02278e68b1d98eb73fea03b4360adb9e3e35564713fa593d71e66e8ac |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTNFOkJCODk5OjM5NURFNjo0RkZGMkY6NkFGQ0Q3NTAiLCJ2aXNpdG9yX2lkIjoiMTk3ODEzNzY1NDg2MzkxMDczNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3c83d1adb84ee178b671d63a8116272b9aa36440585fee22f5720829ddedbe71 |
| hovercard-subject-tag | issue:4401301860 |
| 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/2184/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ba03d3d83d4317f96d0960a7af191c3a88c0ad47deeaf198f3e2bc2edf1d47b/PowerShell/PSScriptAnalyzer/issues/2184 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ba03d3d83d4317f96d0960a7af191c3a88c0ad47deeaf198f3e2bc2edf1d47b/PowerShell/PSScriptAnalyzer/issues/2184 |
| og:image:alt | Summary of the new feature There is currently one PSScriptAnalyzerSettings.psd1 file shipped with the PSScriptAnalyzer but there are at least two use cases with a different requirement: Design-time... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iRon7 |
| 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