Skip to content

Add cli flag to scan command to show detector-level scores #80

Description

@omkar-foss

Currently with #12 (PR #65), we show score and confidence for each finding in the output. By default, this is useful as it gives very granular scoring.

But in case the user wants to see per-detector aggregate scores for each commit, the user would've to manually go through the list and aggregate it at detector-level. This is especially true for folks who'd be interested in a particular type of detector (e.g. commit trailers).

So it'd be good if allow the user to pass a flag to see per-detector scores for each commit in output, something like:

disclosure scan --format=json --show-per-detector-scoring

Output could look like:

...

commit abc (score=125.0, confidence=high)
  per-detector scores:
  detector          score
  trailer           85.0
  committer         40.0

  findings:
  ...(what we have in current output)

commit def (score=85.0, confidence=high)
  per-detector scores:
  detector          score
  trailer           85.0

  findings:
  ...(what we have in current output)

...other commits similarly

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request!user-experienceItems related to improving user experience

Type

No type

Projects

Status
Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions