PowerShell / PowerShell/PSScriptAnalyzer
Optional logging metrics for rule applications
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- C#
- Sterne
- 2.2k
- Forks
- 414
- Ø Merge
- 13 Std. 1 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
Tobias has suggestions around adding useful metrics for rule applications.
Context:
"It would be extremely helpful to have metrics about how often a rule was applied, how often it was violated, and how long evaluation took.
It could be controlled via opt-in so logging is off until you turn it on.
This way, we all could identify the rules violated most often, and initiate educational initiatives, plus find out more about rule quality and relevance.
The best way to consume this info would be through event logs. This would not replace my original suggestion of having a “-Diagnostic” switch. The –Diagnostics switch would apply to the current scenario only and return metrics immediately.
"
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Das Issue nennt keine Dateien, Tests oder Einstiegspunkte. Beginne damit, zu ermitteln, wo Regeln angewendet und ausgewertet werden, und bestimme dann, wie das Opt-in-Event-Logging und der vorgeschlagene Diagnose-Schalter Anwendungsanzahlen, Verstöße und Auswertungszeit sichtbar machen sollten.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp, powershell
- Bereich
- devtools, observability
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 20/100