Skip to content

fix(output): pluralize vulnerability as vulnerabilities in scan status summary (#905) - #906

Closed
Dingding-leo wants to merge 1 commit into
OWASP:mainfrom
Dingding-leo:fix/pluralize-vulnerabilities
Closed

fix(output): pluralize vulnerability as vulnerabilities in scan status summary (#905)#906
Dingding-leo wants to merge 1 commit into
OWASP:mainfrom
Dingding-leo:fix/pluralize-vulnerabilities

Conversation

@Dingding-leo

@Dingding-leo Dingding-leo commented Jul 27, 2026

Copy link
Copy Markdown

Summary

Fixes #905.

Changes

  • Updated pluralize() calls in src/output/printers.ts for vulnerability to pass "vulnerabilities" explicitly as the 3rd argument, so count != 1 outputs "X vulnerabilities" instead of "X vulnerabilitys".
  • Added unit test coverage for explicit plural strings in tests/utils/string.test.ts.

When printing final scan status summary, use explicit plural form 'vulnerabilities' for pluralize() so that plural counts display as 'X vulnerabilities' instead of 'X vulnerabilitys'.
@Dingding-leo
Dingding-leo requested a review from sonukapoor as a code owner July 27, 2026 21:37
Copilot AI review requested due to automatic review settings July 27, 2026 21:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Dingding-leo Dingding-leo closed this by deleting the head repository Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: scan-complete line prints "vulnerabilitys" instead of "vulnerabilities"

2 participants