Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sanitize severities by output format #5359

Merged
merged 4 commits into from
Jan 31, 2025

Conversation

ldez
Copy link
Member

@ldez ldez commented Jan 30, 2025

Adds a sanitizer for severity name on each format that uses a deterministic set of values.

I also added documentation on each structure about the formats.

Output formats:

  • Checkstyle: ignore, info, warning, error
  • Code Climate: info, minor, major, critical, blocker
  • SARIF: none, note, warning, error
  • TeamCity: INFO, ERROR, WARNING, WEAK WARNING (upper case)
  • JUnit XML: no official specification

@ldez ldez added bug Something isn't working area: output Related to issue output labels Jan 30, 2025
@ldez ldez added this to the next milestone Jan 30, 2025
@ldez ldez force-pushed the feat/printer-doc-severity branch from 847731b to b3e7fcb Compare January 30, 2025 22:36
@ldez ldez merged commit 980a911 into golangci:master Jan 31, 2025
18 checks passed
@ldez ldez deleted the feat/printer-doc-severity branch January 31, 2025 13:19
@ldez ldez mentioned this pull request Jan 31, 2025
@ldez ldez modified the milestones: next, v1.64 Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: output Related to issue output bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants