Skip to content

Fingerprint of issue in same file is not unique

Fingerprint is not unique for the same check multiple places in the same file. Gitlab only reports the first item with that fingerprint.

Previous logic included the location in the fingerprint.

   [{
        "check_name": "ForbiddenComment",
        "description": "Forbidden TODO todo marker in comment, please do the changes.",
        "categories": [
            "Style"
        ],
        "location": {
            "path": "FileName.kt",
            "positions": {
                "begin": {
                    "line": 126,
                    "column": 17
                }
            }
        },
        "otherLocations": [
            
        ],
        "remediation_points": 100000,
        "severity": "minor",
        "fingerprint": "debd131fde8780442da6bb03d87dce10",
        "type": "issue"
    },
    {
        "check_name": "ForbiddenComment",
        "description": "Forbidden TODO todo marker in comment, please do the changes.",
        "categories": [
            "Style"
        ],
        "location": {
            "path": "Filename.kt",
            "positions": {
                "begin": {
                    "line": 137,
                    "column": 17
                }
            }
        },
        "otherLocations": [
            
        ],
        "remediation_points": 100000,
        "severity": "minor",
        "fingerprint": "debd131fde8780442da6bb03d87dce10",
        "type": "issue"
    }]
Edited by Nic Bell