Title: PSSA 2.0 Roadmap · Issue #1528 · PowerShell/PSScriptAnalyzer · GitHub
Open Graph Title: PSSA 2.0 Roadmap · Issue #1528 · PowerShell/PSScriptAnalyzer
X Title: PSSA 2.0 Roadmap · Issue #1528 · PowerShell/PSScriptAnalyzer
Description: Note: this is meant to be a living artifact for discussing, and tracking the 2.0 milestone PSSA 2.0 Roadmap PSScriptAnalyzer 2.0 is a major architecture of the PSScriptAnalyzer (PSSA) module, a static code checker for PowerShell modules ...
Open Graph Description: Note: this is meant to be a living artifact for discussing, and tracking the 2.0 milestone PSSA 2.0 Roadmap PSScriptAnalyzer 2.0 is a major architecture of the PSScriptAnalyzer (PSSA) module, a sta...
X Description: Note: this is meant to be a living artifact for discussing, and tracking the 2.0 milestone PSSA 2.0 Roadmap PSScriptAnalyzer 2.0 is a major architecture of the PSScriptAnalyzer (PSSA) module, a sta...
Opengraph URL: https://github.com/PowerShell/PSScriptAnalyzer/issues/1528
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"PSSA 2.0 Roadmap","articleBody":"Note: this is meant to be a living artifact for discussing, and tracking the 2.0 milestone\r\n\r\n# PSSA 2.0 Roadmap \r\n\r\nPSScriptAnalyzer 2.0 is a major architecture of the PSScriptAnalyzer (PSSA) module, a static code checker for PowerShell modules and scripts which provides linting and formatting for PowerShell Editor Services. \r\n\r\n## Motivation \r\n\r\nThe goals and uses of PSSA have evolved since the module was first developed as a prototype in 2015. The heavy use of the module in PowerShell Editor Services mean that embeddability and interuptability are new priorities. This integration scenario also amplifies the benefit of gains made to the performance and stability of the module. \r\n\r\nAs we continue to ship new versions of PowerShell across many platforms, the number of possible version and platform targets multiplies.\r\nTherefore it is a growing priority to supplement these PowerShell releases with tooling that allows for script migration, as well as targeted authoring to specific PowerShell versions ands platforms.\r\nThis compatibility framework allows module authors to contribute the PowerShell ecosystem while still being able to target users who may be on other versions of PowerShell or develop on other platforms.\r\n\r\nThe role of PSSA in CI/CD pipelines presents a priority for better custom rule customization and configuration.\r\nThe integration point of PSSA in Visual Studio Code provides opportunities for reliable, customizable rule configuration (and authoring) in a familiar interface.\r\n\r\nBecause of constraints in the current design of this module, the most efficient way to maximize these improvements to the module are through a re-architecture of the module.\r\nThis approach allows us to optimize the way PSSA works (rule metadata, how PowerShell engine is called etc.) as a core components of improving the end user experience.\r\n\r\n## Goals \r\n\r\n1.\tImproved performance and stability, especially for the VSCode extension\r\n - Top priority is formatting rules \r\n -\tNext target is for current 5 slowest rules which generate the bottleneck\r\n -\tGoal is to reduce the number of passes through the PowerShell parser, and the need to generate instances of PowerShell\r\n2.\tPSSA can be easily integrated into other applications (embeddability) \r\n -\tPSSA can be read in a thread safe way with or without PowerShell\r\n -\tTop embeddability scenario is editor services \r\n -\tNext target scenario is CI/CD systems\r\n3.\tCompatibility rules are easy to create, configure, and run.\r\n -\tSimplified process for installing profiles and naming conventions \r\n -\tImproving this experience is partially reliant on easier generation of profiles\r\n4.\tRule customization (users writing their own rules) and configuration (for built in and custom rules) should be straightforward, reliable, and consistent\r\n -\tRules are written in C# and PS Script and configured with JSON\r\n -\tEasier targeting for rule suppression (within code—comment based, within workspaces, and globally)\r\n -\tRules can be packaged and shared as nuget packages or modules\r\n\r\n### Stretch goal\r\nAs a PowerShell user I only need the latest version of PowerShell on my dev box regardless of platform or PowerShell version I will eventually deploy my script on. \r\n\r\n## Scenarios and Issues \r\n\r\n|High Level Scenario |Sub Scenario |Implementation notes |Issues |Status |\r\n|--------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|------------|-----------|\r\n|Improved performance and stability, especially for the VSCode extension |Performance of Formatting Rules |Formatter should be run in parallel |#1480 |Not Started|\r\n| | | | |Not Started|\r\n| |Target speed of Five Slowest Rules |Reduce/Cache calls to Get-Command: Slow rules are because of Get-Command calls | |Not Started|\r\n| | |Optimize cache with consideration to speed and memory (consider a two-level cache) | |Not Started|\r\n| | |Improve how the cache is queried | |Not Started|\r\n| |Reduce the number of passes through the PowerShell parser | | |Not Started|\r\n| |Reduce the need to generate instances of PowerShell |Better rule meta-data (clear rule types: formatting, diagnostic; needs PowerShell vs doesn’t)| |Not Started|\r\n|PSSA can be easily integrated into other applications (embeddability) |PSSA can be read in a thread safe way with or without PowerShell | | |Not Started|\r\n| |PSSA as a standalone executable |Analysis as a service | |Not Started|\r\n| |PSSA can be well integrated with editor services |Async analysis (interuptability is key) |#1482 |Not Started|\r\n| | |Better Rule APIs | |Not Started|\r\n| | |Support running in constrained language mode |#1502 |Not Started|\r\n| | |Intellisense support for rule configuration | |Not Started|\r\n| |PSSA can be well integrated within CI/CD | | |Not Started|\r\n|Compatibility rules are easy to create, configure, and run |Simplified process for installing profiles and naming conventions |Easier language version targets/parser integration |#1484 |Not Started|\r\n| |Easy generation of compatibility profiles | | |Not Started|\r\n|Rule customization (users writing their own rules) and configuration (for built in and custom rules) should be straightforward, reliable, and consistent|Rules are written in C# and PS Script | | |Not Started|\r\n| |JSON for configuration | |#1479, #1279|Not Started|\r\n| |Easier targeting for rule suppression (within code—comment based, within workspaces, and globally)| |#1483, #1347|Not Started|\r\n| |Rules can be packaged and shared as nuget packages or modules | | |Not Started|\r\n| |Proper global settings | |#1484, #1224|Not Started|\r\n|General User Experience |Clear documentation | |#1487 |Not Started|\r\n| |Robust testing | |#1488 |Not Started|\r\n| |Performance testing? | | |Not Started|\r\n| |Stress testing? | | |Not Started|\r\n","author":{"url":"https://github.com/SydneyhSmith","@type":"Person","name":"SydneyhSmith"},"datePublished":"2020-06-16T19:49:46Z","url":"https://github.com/PowerShell/PSScriptAnalyzer/issues/1528"}
| 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:3ee02ef1-fb04-f53d-45b8-308ec7943f2a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD5C:26153B:2E3120:3D0DE1:6AFCE4D9 |
| html-safe-nonce | d7b0bb73296cf83c9c175bae5d27dd782ddcc05d146f83387d3bc570a93d592b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDVDOjI2MTUzQjoyRTMxMjA6M0QwREUxOjZBRkNFNEQ5IiwidmlzaXRvcl9pZCI6IjQyODYwODI5NzMyNTk1ODg4MjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a68b3fca726a273ec771a905d75049abaae8736fcf81b3cf118b594d80197d8f |
| hovercard-subject-tag | issue:639930560 |
| 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/1528/issue_layout |
| twitter:image | https://opengraph.githubassets.com/263ee3642e2881d801684aaa90f32f3716238e124c808195a5ae9588f05905ad/PowerShell/PSScriptAnalyzer/issues/1528 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/263ee3642e2881d801684aaa90f32f3716238e124c808195a5ae9588f05905ad/PowerShell/PSScriptAnalyzer/issues/1528 |
| og:image:alt | Note: this is meant to be a living artifact for discussing, and tracking the 2.0 milestone PSSA 2.0 Roadmap PSScriptAnalyzer 2.0 is a major architecture of the PSScriptAnalyzer (PSSA) module, a sta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SydneyhSmith |
| hostname | github.com |
| expected-hostname | github.com |
| None | 99aede4c5f55ec5cf06666a8c9e03ebf9f85f7231223e7f1c38c16e5504835b3 |
| 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 | ecfd63ca125ec74b42f74eeb158b3fa081c8c497 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width