Skip to content

Fingerprint in gitlab code quality artifacts is not unique #17

Open

Description

@dm0

When a file contains multiple issues of the same type, they all have the same fingerprint.

An example of JSON generated using the gitlab formatter:

[
  {
    "description": "D107 Missing docstring in __init__",
    "fingerprint": "37502d515a0182384565f9d40139a7a1",
    "location": {
      "path": ".exceptions.py",
      "lines": {
        "begin": 41
      }
    },
    "severity": "major"
  },
  {
    "description": "D107 Missing docstring in __init__",
    "fingerprint": "37502d515a0182384565f9d40139a7a1",
    "location": {
      "path": "exceptions.py",
      "lines": {
        "begin": 46
      }
    },
    "severity": "major"
  },
  {
    "description": "D107 Missing docstring in __init__",
    "fingerprint": "37502d515a0182384565f9d40139a7a1",
    "location": {
      "path": "exceptions.py",
      "lines": {
        "begin": 51
      }
    },
    "severity": "major"
  }
]

This results in a single issue displayed in GitLab's Code Quality Widget in MR view.

Activity

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

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