Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/actions/upload-actual/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ runs:
using: composite
steps:
- name: Prepare Ruling Artifact
uses: SonarSource/core-languages-tooling-public/prepare-ruling-artifact@master
uses: SonarSource/core-languages-tooling-public/prepare-ruling-artifact@792fbfa7eb7fcf1b5890807b567213b3a744fb5d
with:
artifact-name: actual_${{ inputs.name }}

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ruling-diff-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

# Use the action from the branch we just pushed
- name: Post ruling diff comment
uses: SonarSource/core-languages-tooling-public/ruling-diff-comment@master
uses: SonarSource/core-languages-tooling-public/ruling-diff-comment@9383f76d4aef4667d5db2ef3699c3177833eccd5
with:
pr-number: ${{ inputs.pr-number || github.event.pull_request.number }}
repository: ${{ github.repository }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ private static OrchestratorRule createOrchestrator() {
.useDefaultAdminCredentialsForBuilds(true)
.setSonarVersion(System.getProperty("sonar.runtimeVersion", "LATEST_RELEASE"))
.addPlugin(FileLocation.of(TestClasspathUtils.findModuleJarPath("../../sonar-java-plugin").toFile()))
.addPlugin(MavenLocation.of("org.sonarsource.sonar-lits-plugin", "sonar-lits-plugin", "0.11.0.2659"));
.addPlugin(MavenLocation.of("org.sonarsource.sonar-lits-plugin", "sonar-lits-plugin", "0.13.0.16172"));

if (isCommunityEditionTestsOnly()) {
orchestratorBuilder.setEdition(Edition.COMMUNITY);
Expand Down

This file was deleted.

158 changes: 158 additions & 0 deletions its/ruling/src/test/resources/expected/eclipse-jetty/java-S100.sarif
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"$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:S100",
"ruleIndex" : -1,
"kind" : "fail",
"level" : "warning",
"message" : {
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
},
"locations" : [ {
"id" : -1,
"physicalLocation" : {
"artifactLocation" : {
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
"index" : -1
},
"region" : {
"startLine" : 340,
"startColumn" : 24,
"endLine" : 340,
"endColumn" : 34,
"charOffset" : 11413,
"charLength" : 10,
"byteOffset" : 11413,
"byteLength" : 10
}
}
} ],
"rank" : -1.0
}, {
"ruleId" : "java:S100",
"ruleIndex" : -1,
"kind" : "fail",
"level" : "warning",
"message" : {
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
},
"locations" : [ {
"id" : -1,
"physicalLocation" : {
"artifactLocation" : {
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
"index" : -1
},
"region" : {
"startLine" : 349,
"startColumn" : 25,
"endLine" : 349,
"endColumn" : 35,
"charOffset" : 11718,
"charLength" : 10,
"byteOffset" : 11718,
"byteLength" : 10
}
}
} ],
"rank" : -1.0
}, {
"ruleId" : "java:S100",
"ruleIndex" : -1,
"kind" : "fail",
"level" : "warning",
"message" : {
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
},
"locations" : [ {
"id" : -1,
"physicalLocation" : {
"artifactLocation" : {
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
"index" : -1
},
"region" : {
"startLine" : 395,
"startColumn" : 27,
"endLine" : 395,
"endColumn" : 37,
"charOffset" : 12942,
"charLength" : 10,
"byteOffset" : 12942,
"byteLength" : 10
}
}
} ],
"rank" : -1.0
}, {
"ruleId" : "java:S100",
"ruleIndex" : -1,
"kind" : "fail",
"level" : "warning",
"message" : {
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
},
"locations" : [ {
"id" : -1,
"physicalLocation" : {
"artifactLocation" : {
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
"index" : -1
},
"region" : {
"startLine" : 415,
"startColumn" : 25,
"endLine" : 415,
"endColumn" : 35,
"charOffset" : 13435,
"charLength" : 10,
"byteOffset" : 13435,
"byteLength" : 10
}
}
} ],
"rank" : -1.0
}, {
"ruleId" : "java:S100",
"ruleIndex" : -1,
"kind" : "fail",
"level" : "warning",
"message" : {
"text" : "Rename this method name to match the regular expression '^[a-z][a-zA-Z0-9]*$'."
},
"locations" : [ {
"id" : -1,
"physicalLocation" : {
"artifactLocation" : {
"uri" : "eclipse-jetty:jetty-util/src/main/java/org/eclipse/jetty/util/security/UnixCrypt.java",
"index" : -1
},
"region" : {
"startLine" : 470,
"startColumn" : 25,
"endLine" : 470,
"endColumn" : 34,
"charOffset" : 15596,
"charLength" : 9,
"byteOffset" : 15596,
"byteLength" : 9
}
}
} ],
"rank" : -1.0
} ],
"newlineSequences" : [ "\r\n", "\n" ],
"columnKind" : "utf16CodeUnits"
} ]
}
Loading