Skip to content

[BUG] Bitbucket Cloud cannot comment entire file #1462

Open
@alessandro308

Description

Describe the bug
warn(message, fileName) adds the message into the mainComment rather than adding a file comment

Here an example of entire file comment:
image

This happens because a warning is matched with

export const isInline = (violation: Violation): boolean => violation.file !== undefined && violation.line !== undefined

but, in case of Bitbucket, the line is not mandatory.

I have no idea how to fix it because looks like that is a BB specific behaviour and at the inlineResults function we don't have context on the platform, right?

I'm happy to help to find and implement a fix if you can give me some hint...

I know that I may implement this with a custom API but in that case I'm going to lose all the check to update current comments, right?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions