diff --git a/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S103.sarif b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S103.sarif new file mode 100644 index 00000000000..244e11c0a3b --- /dev/null +++ b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S103.sarif @@ -0,0 +1,42 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S103", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Split this 121 characters long line (which is greater than 120 authorized)." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 64, + "startColumn" : 1, + "endLine" : 64, + "endColumn" : 122 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1105.sarif b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1105.sarif new file mode 100644 index 00000000000..a79eb90ebb3 --- /dev/null +++ b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1105.sarif @@ -0,0 +1,138 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S1105", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Move this left curly brace to the end of previous line of code." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 24, + "startColumn" : 1, + "endLine" : 24, + "endColumn" : 2 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1105", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Move this left curly brace to the end of previous line of code." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 27, + "startColumn" : 5, + "endLine" : 27, + "endColumn" : 6 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1105", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Move this left curly brace to the end of previous line of code." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 44, + "startColumn" : 5, + "endLine" : 44, + "endColumn" : 6 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1105", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Move this left curly brace to the end of previous line of code." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 57, + "startColumn" : 5, + "endLine" : 57, + "endColumn" : 6 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1105", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Move this left curly brace to the end of previous line of code." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 63, + "startColumn" : 5, + "endLine" : 63, + "endColumn" : 6 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S121.sarif b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S121.sarif new file mode 100644 index 00000000000..ea7f2a18bf0 --- /dev/null +++ b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S121.sarif @@ -0,0 +1,138 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S121", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Missing curly brace." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 30, + "startColumn" : 9, + "endLine" : 30, + "endColumn" : 11 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S121", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Missing curly brace." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 35, + "startColumn" : 9, + "endLine" : 35, + "endColumn" : 11 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S121", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Missing curly brace." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 45, + "startColumn" : 9, + "endLine" : 45, + "endColumn" : 11 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S121", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Missing curly brace." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 47, + "startColumn" : 9, + "endLine" : 47, + "endColumn" : 11 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S121", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Missing curly brace." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + }, + "region" : { + "startLine" : 49, + "startColumn" : 9, + "endLine" : 49, + "endColumn" : 11 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1228.sarif b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1228.sarif new file mode 100644 index 00000000000..e2f77c4033c --- /dev/null +++ b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1228.sarif @@ -0,0 +1,162 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'org.eclipse.jetty.http.pathmap' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'org.eclipse.jetty.http.tools' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'org.eclipse.jetty.http.tools.matchers' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'org.eclipse.jetty.logging' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'org.eclipse.jetty.server.resource' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'org.eclipse.jetty.util.compression' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'org.eclipse.jetty.util.log' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty", + "index" : -1 + } + } + } ], + "rank" : -1.0 + }, { + "ruleId" : "java:S1228", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add a 'package-info.java' file to document the 'org.eclipse.jetty.util.thread.strategy' package" + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty", + "index" : -1 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file diff --git a/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1451.sarif b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1451.sarif new file mode 100644 index 00000000000..05fecf37207 --- /dev/null +++ b/its/ruling/src/test/resources/expected/eclipse-jetty-similar-to-main-small/java-S1451.sarif @@ -0,0 +1,36 @@ +{ + "$schema" : "https://json.schemastore.org/sarif-2.1.0.json", + "version" : "2.1.0", + "runs" : [ { + "tool" : { + "driver" : { + "name" : "LITS", + "language" : "en-US", + "contents" : [ "localizedData", "nonLocalizedData" ], + "isComprehensive" : false + } + }, + "language" : "en-US", + "results" : [ { + "ruleId" : "java:S1451", + "ruleIndex" : -1, + "kind" : "fail", + "level" : "warning", + "message" : { + "text" : "Add or update the header of this file." + }, + "locations" : [ { + "id" : -1, + "physicalLocation" : { + "artifactLocation" : { + "uri" : "eclipse-jetty:jetty-http/src/main/java/org/eclipse/jetty/http/pathmap/AbstractPathSpec.java", + "index" : -1 + } + } + } ], + "rank" : -1.0 + } ], + "newlineSequences" : [ "\r\n", "\n" ], + "columnKind" : "utf16CodeUnits" + } ] +} \ No newline at end of file