Slide 11
Slide 11 text
{
"$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json",
"version": "2.1.0",
"runs": [
{
"originalUriBaseIds": {
"%SRCROOT%": {
"uri": "file:///home/runner/"
}
},
"results": [
{
"level": "error",
"locations": [
{
"physicalLocation": {
"artifactLocation": {
"uri": “work/your-ropo/your-repo/app/src/main/java/com/example/myapp/android/MyApplicationTheme.kt”,
"uriBaseId": "%SRCROOT%"
},
"region": {
"startColumn": 5,
"startLine": 19
}
}
}
],
"message": {
"text": "Function name should start with a lowercase letter (except factory methods) and use camel case"
},
"ruleId": "standard:function-naming"
},
…
],
"tool": {
"driver": {
"downloadUri": "https://github.com/pinterest/ktlint/releases/tag/1.0.1",
"fullName": "ktlint",
"informationUri": "https://github.com/pinterest/ktlint/",
"language": "en",
"name": "ktlint",
"organization": "pinterest",
"rules": [],
"semanticVersion": "1.0.1",
"version": "1.0.1"
}
}
}
]
}
ktlint ͷ SARIF ϑΝΠϧͷྫ
Schema ͷόʔδϣϯʢcode scanning 2.1.0 Λαϙʔτʣ
ݕग़͞Εͨ
༻ͨ͠੩తղੳπʔϧͷใ
πʔϧʹΑͬͯ rules ཝʢͦΕҎ֎ͷॴͷ߹͋Δʣʹɺ֤ݕग़ϧʔϧ
ͷิใ͕ॻ͔Ε͍ͯΔ