Skip to content

CLI-674 Support impact severity values in --severities filter#447

Open
kirill-knize-sonarsource wants to merge 1 commit into
masterfrom
feature/kk/CLI-674-impact-severity-filter
Open

CLI-674 Support impact severity values in --severities filter#447
kirill-knize-sonarsource wants to merge 1 commit into
masterfrom
feature/kk/CLI-674-impact-severity-filter

Conversation

@kirill-knize-sonarsource

@kirill-knize-sonarsource kirill-knize-sonarsource commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary by Gitar

  • CLI improvements:
    • Updated --severities filter to support both impact severity values (HIGH, MEDIUM, LOW) and legacy severity values.
    • Added validation logic to prevent mixing impact and legacy severities in the same command.
  • API and internal updates:
    • Added impactSeverities parameter to IssuesSearchParams and request handlers to correctly route filtered requests to the API.
    • Updated command-line help text to clarify supported severity types for users.
  • Testing:
    • Added comprehensive unit and integration tests to verify parameter routing and invalid input handling.

This will update automatically on new commits.

@netlify

netlify Bot commented Jun 12, 2026

Copy link
Copy Markdown

Deploy Preview for sonarqube-cli canceled.

Name Link
🔨 Latest commit 2a27140
🔍 Latest deploy log https://app.netlify.com/projects/sonarqube-cli/deploys/6a2c2e21ca89d600086750d7

@sonarqubecloud

Copy link
Copy Markdown

Agentic Analysis: Early Results

Agentic Analysis and Context Augmentation are available on your project. Here are some issues that could have been prevented. Follow the links to learn how to put them into action.

1 issue(s) found across 1 file(s):

Rule File Line Message
typescript:S4323 tests/unit/cli/commands/list/list.test.ts 455 Replace this union type with a type alias.

Analyzed by SonarQube Agentic Analysis in 3.7 s

@hashicorp-vault-sonar-prod

hashicorp-vault-sonar-prod Bot commented Jun 12, 2026

Copy link
Copy Markdown

CLI-674

@gitar-bot

gitar-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Code Review ✅ Approved

Updates the --severities filter to support impact severity values alongside legacy ones. Validation logic prevents conflicting inputs, and request handling is correctly updated to route to the API.

Options

Auto-apply is off → Gitar will not commit updates to this branch.
Display: compact → Showing less information.

Comment with these commands to change:

Auto-apply Compact
gitar auto-apply:on         
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Gitar

@sonarqubecloud

Copy link
Copy Markdown

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.

1 participant