exasol / project-keeper

This maven plugin checks and unifies a project's structure according to the Exasol integration team's repository standards.
MIT License
3 stars 1 forks source link

Provide metrics for code quality #513

Open ckunki opened 8 months ago

ckunki commented 8 months ago

See metrics tool in github-issue-adapter: https://github.com/exasol/github-issue-adapter/pull/223

See https://sonarcloud.io/web_api

Acceptance Criteria

PK is enhanced to provide templates for CI build that

Nicoretti commented 8 months ago

Maybe this helps: https://sonarcloud.io/web_api/api/measures?deprecated=false

kaklakariada commented 6 months ago

After running sonar on a Maven project, it generates a report in target/sonar/report-task.txt:

organization=exasol
projectKey=com.exasol:project-keeper-root
serverUrl=https://sonarcloud.io
serverVersion=8.0.0.53397
dashboardUrl=https://sonarcloud.io/dashboard?id=com.exasol%3Aproject-keeper-root
ceTaskId=$taskId
ceTaskUrl=https://sonarcloud.io/api/ce/task?id=$taskId

When authenticated, the ceTaskUrl returns the following content:

{
    "task": {
        "id": "$id",
        "type": "REPORT",
        "componentId": "$id",
        "componentKey": "com.exasol:project-keeper-root",
        "componentName": "Project Keeper Root Project",
        "componentQualifier": "TRK",
        "analysisId": "$id",
        "status": "SUCCESS",
        "submittedAt": "2024-03-21T06:45:20+0100",
        "submitterLogin": "$user@github",
        "startedAt": "2024-03-21T06:45:21+0100",
        "executedAt": "2024-03-21T06:45:24+0100",
        "executionTimeMs": 3795,
        "logs": false,
        "hasScannerContext": true,
        "organization": "exasol",
        "warningCount": 1,
        "warnings": []
    }
}