mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-07-30 03:09:50 +08:00
93 lines
2.3 KiB
JSON
93 lines
2.3 KiB
JSON
{
|
|
"metadata": {
|
|
"engine": "Recommended",
|
|
"executedAt": "2026-05-19T10:15:30.123Z",
|
|
"filesAnalyzed": 45,
|
|
"violationCount": 127
|
|
},
|
|
"violations": [
|
|
{
|
|
"rule": "ApexCRUDViolation",
|
|
"engine": "pmd",
|
|
"severity": 2,
|
|
"message": "Validate CRUD permission before SOQL/DML operation",
|
|
"file": "force-app/main/default/classes/AccountService.cls",
|
|
"line": 42,
|
|
"column": 9,
|
|
"fix": null
|
|
},
|
|
{
|
|
"rule": "no-var",
|
|
"engine": "eslint",
|
|
"severity": 3,
|
|
"message": "Unexpected var, use let or const instead.",
|
|
"file": "force-app/main/default/lwc/accountCard/accountCard.js",
|
|
"line": 12,
|
|
"column": 5,
|
|
"fix": {
|
|
"range": [180, 183],
|
|
"text": "let"
|
|
}
|
|
},
|
|
{
|
|
"rule": "ApexDoc",
|
|
"engine": "pmd",
|
|
"severity": 3,
|
|
"message": "Missing ApexDoc comment",
|
|
"file": "force-app/main/default/classes/AccountService.cls",
|
|
"line": 15,
|
|
"column": 1,
|
|
"fix": null
|
|
},
|
|
{
|
|
"rule": "@lwc/lwc/no-inner-html",
|
|
"engine": "eslint",
|
|
"severity": 2,
|
|
"message": "Disallow use of innerHTML",
|
|
"file": "force-app/main/default/lwc/riskComponent/riskComponent.js",
|
|
"line": 28,
|
|
"column": 9,
|
|
"fix": null
|
|
},
|
|
{
|
|
"rule": "prefer-const",
|
|
"engine": "eslint",
|
|
"severity": 3,
|
|
"message": "'data' is never reassigned. Use 'const' instead.",
|
|
"file": "force-app/main/default/lwc/accountCard/accountCard.js",
|
|
"line": 18,
|
|
"column": 5,
|
|
"fix": {
|
|
"range": [245, 248],
|
|
"text": "const"
|
|
}
|
|
}
|
|
],
|
|
"summary": {
|
|
"bySeverity": {
|
|
"1": 0,
|
|
"2": 32,
|
|
"3": 78,
|
|
"4": 15,
|
|
"5": 2
|
|
},
|
|
"byEngine": {
|
|
"pmd": 65,
|
|
"eslint": 58,
|
|
"regex": 4
|
|
},
|
|
"topRules": [
|
|
{"rule": "ApexDoc", "count": 45},
|
|
{"rule": "no-var", "count": 28},
|
|
{"rule": "prefer-const", "count": 19},
|
|
{"rule": "ApexCRUDViolation", "count": 12},
|
|
{"rule": "@lwc/lwc/no-inner-html", "count": 8}
|
|
],
|
|
"topFiles": [
|
|
{"file": "force-app/main/default/classes/AccountService.cls", "count": 23},
|
|
{"file": "force-app/main/default/lwc/accountCard/accountCard.js", "count": 18},
|
|
{"file": "force-app/main/default/classes/ContactTriggerHandler.cls", "count": 15}
|
|
]
|
|
}
|
|
}
|