PowerShell / PowerShell/PSScriptAnalyzer

Optional logging metrics for rule applications

Open
#313 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue - Discussion
Dominant language
C#
Stars
2.2k
Forks
414
Avg merge
13h 1m
Merged PRs (30d)
2

Description

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.
"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name files, tests, or entry points. Begin by locating where rules are applied and evaluated, then determine how opt-in event logging and the proposed diagnostic switch should expose application counts, violations, and evaluation time.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
devtools, observability
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.