diff options
author | Klaudio Sinani <klaudio.sinani@sonarsource.com> | 2022-11-10 17:58:30 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2022-11-15 20:02:59 +0000 |
commit | 8f9eb2135150b0a77aea302e17afa4ba238560ce (patch) | |
tree | 1412fb1e771c35d6bf149f54b3083ef3d18cd787 /sonar-core/src/test/resources | |
parent | 53f94935f393750ba08a7e1fa00742acadbadafb (diff) | |
download | sonarqube-8f9eb2135150b0a77aea302e17afa4ba238560ce.tar.gz sonarqube-8f9eb2135150b0a77aea302e17afa4ba238560ce.zip |
SONAR-17560 Introduce SARIF version validation
Diffstat (limited to 'sonar-core/src/test/resources')
-rw-r--r-- | sonar-core/src/test/resources/org/sonar/core/sarif/unsupported-sarif-version-abc.json | 107 |
1 files changed, 107 insertions, 0 deletions
diff --git a/sonar-core/src/test/resources/org/sonar/core/sarif/unsupported-sarif-version-abc.json b/sonar-core/src/test/resources/org/sonar/core/sarif/unsupported-sarif-version-abc.json new file mode 100644 index 00000000000..f9962795461 --- /dev/null +++ b/sonar-core/src/test/resources/org/sonar/core/sarif/unsupported-sarif-version-abc.json @@ -0,0 +1,107 @@ +{ + "version": "A.B.C", + "$schema": "https://raw.githubusercontent.com/oasis-tcs/sarif-spec/master/Schemata/sarif-schema-2.1.0.json", + "runs": [ + { + "tool": { + "driver": { + "name": "SonarQube", + "organization": "SonarSource", + "semanticVersion": "9.6", + "rules": [ + { + "id": "java:S5132", + "name": "java:S5132", + "shortDescription": { + "text": "Make this final static field too." + }, + "fullDescription": { + "text": "Make this final static field too." + }, + "help": { + "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam hendrerit nisi sed sollicitudin pellentesque. Nunc posuere purus rhoncus pulvinar aliquam. Ut aliquet tristique nisl vitae volutpat. Nulla aliquet porttitor venenatis. Donec a dui et dui fringilla consectetur id nec massa. Aliquam erat volutpat. Sed ut dui ut lacus dictum fermentum vel tincidunt neque. Sed sed lacinia lectus. Duis sit amet sodales felis. Duis nunc eros, mattis at dui ac, convallis semper risus. In adipiscing ultrices tellus, in suscipit massa vehicula eu." + }, + "properties": { + "tags": [ + "tag1", + "tag2" + ] + } + } + ] + } + }, + "results": [ + { + "ruleId": "java:S5132", + "message": { + "text": "this is the message" + }, + "locations": [ + { + "physicalLocation": { + "artifactLocation": { + "uri": "www.google.com", + "uriBaseId": "%SRCROOT" + }, + "region": { + "startLine": 11, + "endLine": 222, + "startColumn": 54, + "endColumn": 4 + } + } + } + ], + "partialFingerprints": { + "primaryLocationLineHash": "thisISTHEHAS" + }, + "codeFlows": [ + { + "threadFlows": [ + { + "locations": [ + { + "location": { + "physicalLocation": { + "artifactLocation": { + "uri": "www.google.com", + "uriBaseId": "%SRCROOT" + }, + "region": { + "startLine": 11, + "endLine": 222, + "startColumn": 54, + "endColumn": 4 + } + } + } + }, + { + "location": { + "physicalLocation": { + "artifactLocation": { + "uri": "www.google.com", + "uriBaseId": "%SRCROOT" + }, + "region": { + "startLine": 22, + "endLine": 4323, + "startColumn": 545, + "endColumn": 4324 + } + } + } + } + ] + } + ] + } + ] + } + ], + "language": "en-us", + "columnKind": "utf16CodeUnits" + } + ] +} |