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.
When a file contains multiple issues of the same type, they all have the same fingerprint.
An example of JSON generated using the
gitlabformatter:[ { "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.