Skip to content

Commit

Permalink
enable qodana caching between runs
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-manes committed Sep 29, 2024
1 parent b643bfe commit effe7ff
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/qodana.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,14 @@ jobs:
with:
java: ${{ env.JAVA_VERSION }}
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
arguments: build -x test
arguments: check -x test
- name: Qodana - Code Inspection
uses: JetBrains/qodana-action@84494be4d1a2f64ec1c4bfdf475406e246e34672 # v2024.2.3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
with:
upload-result: true
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file for GitHub Advanced Security Dashboard
uses: github/codeql-action/upload-sarif@461ef6c76dfe95d5c364de2f431ddbd31a417628 # v3.26.9
with:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1671,6 +1671,7 @@ void performCleanUp(@Nullable Runnable task) {
* schedule an asynchronous maintenance task. This may occur due to a concurrent write after the
* maintenance work had started or if the amortized threshold of work per clean up was reached.
*/
@SuppressWarnings("resource")
void rescheduleCleanUpIfIncomplete() {
if (drainStatusOpaque() != REQUIRED) {
return;
Expand Down
4 changes: 3 additions & 1 deletion gradle/plugins/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ fun setProjectEncoding() {
}
}

setProjectEncoding()
if (System.getenv("CI").isNullOrEmpty()) {
setProjectEncoding()
}
1 change: 1 addition & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
version: "1.0"
projectJDK: "21"
linter: jetbrains/qodana-jvm-community:2024.2
profile:
name: qodana.recommended
licenseRules:
Expand Down

0 comments on commit effe7ff

Please sign in to comment.