feat(oxlint): Add Bitbucket Code Insights output formatter#20113
Open
ild0tt0re wants to merge 1 commit intooxc-project:mainfrom
Open
feat(oxlint): Add Bitbucket Code Insights output formatter#20113ild0tt0re wants to merge 1 commit intooxc-project:mainfrom
ild0tt0re wants to merge 1 commit intooxc-project:mainfrom
Conversation
6c8c8bb to
de22c78
Compare
de22c78 to
0f50788
Compare
Contributor
|
@ild0tt0re can you include an example of what this looks like in bitbucket? |
Collaborator
|
There’s an example screenshot about halfway down this page under the “Hiding annotations from the diff view” section. It’s the part in the code diff showing as “low” and as a “WCAG” issue. It’s a similar UI concept to the GitHub feature. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new Bitbucket output formatter for oxlint that emits diagnostics as Bitbucket Code Insights annotations (bulk annotations JSON) so CI can upload reports to Bitbucket.
Why
Enable Bitbucket Code Insights integration by producing the exact annotation payload expected by Bitbucket reports endpoints. This lets CI workflows surface linter issues directly in Bitbucket's UI.
What changed
BitbucketOutputFormatter,BitbucketReporter, and serialization types.annotation_type/severity(Error→BUG/HIGH,Warning→CODE_SMELL/MEDIUM,Advice→CODE_SMELL/LOW).external_idper diagnostic using a deterministic hash.severitymappings, andexternal_iddeterminism.Compatibility / Migration
Non-breaking — new formatter only; existing formatters unaffected. To use, select the bitbucket formatter when running oxlint in CI and POST the resulting JSON to Bitbucket Code Insights annotations endpoint.