Skip to content

Add options to filter by score of category groups or audit #957

Closed

Description

@BioPhoton

User story

As a consumer of the markdown and terminal report I want to see only relevant results.

Acceptance criteria

  • categoriesOverviewSection takes additional options { isScoreListed?: (score: number) => boolean }
    • if isScoreListed is given filter categories by isScoreListed(category.score)
    • if isScoreListed is not given return all categories
  • categoriesDetailsSection takes additional options { isScoreListed?: (score: number) => boolean }
    • if isScoreListed is given filter categories by isScoreListed(category.refs[number].score)
    • if isScoreListed is not given return all category refs
  • auditsSection takes additional options { isScoreListed?: (score: number) => boolean }
    • if isScoreListed is given filter audits by isScoreListed(audit.score)
    • if isScoreListed is not given return all audits
  • generateMdReport takes additional options { isScoreListed?: (score: number) => boolean }
    • if isScoreListed is given
      • filter categories by isScoreListed(category.score)
      • filter categories by isScoreListed(category.refs[number].score)
      • filter audits by isScoreListed(audit.score)
    • if isScoreListed is not given return all categories, category refs and audits

Implementation details

No response

Activity

  1. self-assigned this
    on Mar 4, 2025
  2. changed the title [-]Add options to filter by score of category or audit[/-] [+]Add options to filter by score of category groups or audit[/+] on Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

➕ enhancement🧩 utils

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions