Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Request: Abstract ScriptAnalysis to allow multiple providers

Aperta
#5,410 12 commenti 3 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Tranquilla
Stack tecnologico
powershell, vscode

Direzione di ricerca

Inizia esaminando il wrapper esistente di analysis-service di PSES, il progetto Specter proposto e i relativi test di compatibilità con PSSA. Chiarisci il confine del provider e l’approccio di integrazione prima di implementare qualsiasi cosa; il lavoro sarà considerato completato quando PSES potrà supportare più provider di ScriptAnalysis mantenendo i casi d’uso descritti per la diagnostica e la formattazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Area-Script Analysis Issue-Discussion Issue-Enhancement Verified
Prerequisites
  • I have written a descriptive issue title.
  • I have searched all issues to ensure it has not already been reported.
Summary

Howdy howdy!

About six years ago I branched PSSA to experiment with how we might rewrite it to address some of the issues it represents especially for embedding in PSES.

I picked that back up again recently and have spent some time pushing it into an interesting state. I've put it together here.

I pulled in all of PSSA's tests and it passes all of them (except for deliberate breaks, which are either minor or internal type things) when run through its compatibility module.

Anyway, I suspect I won't be maintaining it, but I'd be happy to give it away if it's useful. It's specifically intended to serve PSES scenarios alongside also offering a PS module — it even has a server mode in case you want to run it as a daemon. And maybe this is of interest to @bergmeister too. Oh it also has a few extra rules, including native implementations of InjectionHunter.

Otherwise I just stopped in to say hi and hope all's well!

Proposed Design

If memory serves, we abstracted PSSA in PSES by wrapping it in an analysis service. We could probably do something similar in PSES pretty easily, but this time compiling directly against the DLL because it's meant to be used as a DLL. Also the service could spawn a new process that lives between calls or something — not quite sure about the details there, but the point is to amortise initialisation costs (maybe that scenario is actually better for CI or repeated command line use). Basically it shouldn't be too crazy to integrate if you're interested. And it should be pretty quick for diagnostics and much much faster for formatting

Lingua principale
TypeScript
Stelle
1.9k
Fork
549
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di PowerShell/vscode-powershell

Tutte le issue di PowerShell/vscode-powershell

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.