Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Valid issues outside of diff view #135

@mdanielak

Description

@mdanielak

From time to time there is a situation in pull requests when issues appear outside of diff view and comment cannot be added. It happens because bitbucket allows only adding comments in +/- 10 lines from changes lines.
For instance we have multiple files in pull request with many classes and methods. In this pull request there is a method myMethod() declared in line 50. Author adds few if conditions in line 100 and below. After analysis Sonarqube says
The Cyclomatic Complexity of this class is 201 which is greater than 200 authorized.
And comment can't be added because of the diff lines bitbucket limitation.
The same situation can happen with other type of issues like unused imports, consider using constaints instead of duplicating literals, etc
If there are a lot of files, classes and methods in the pull request author is confused and doesn't know where is the problem.
Have you faced this issue before? Are there any plans to handle it?
Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions