Skip to content

Commit

Permalink
⬆️ Update qodana to v2024.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
qodana-bot authored and tiulpin committed Sep 17, 2024
1 parent 95a87a0 commit 5983adc
Show file tree
Hide file tree
Showing 18 changed files with 65 additions and 57 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -120,34 +120,34 @@ jobs:
pr: 'true'
# - directory: 'tests/dotnet'
# os: 'ubuntu-latest'
# arguments: '-l,jetbrains/qodana-cdnet:2024.1-eap'
# arguments: '-l,jetbrains/qodana-cdnet:2024.2-eap'
# pr: 'false' # TODO: add true when pr-mode is available for dotnet-community
# - directory: 'tests/cpp'
# arguments: '-l,jetbrains/qodana-clang:2024.1-eap'
# arguments: '-l,jetbrains/qodana-clang:2024.2-eap'
# os: 'ubuntu-latest'
# pr: 'false'
- directory: 'tests/java'
arguments: '-l,jetbrains/qodana-jvm-community:2024.1'
arguments: '-l,jetbrains/qodana-jvm-community:2024.2'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/java'
arguments: '-l,jetbrains/qodana-jvm-community:2024.1'
arguments: '-l,jetbrains/qodana-jvm-community:2024.2'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/java'
arguments: '-l,jetbrains/qodana-jvm-android:2024.1'
arguments: '-l,jetbrains/qodana-jvm-android:2024.2'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/java'
arguments: '-l,jetbrains/qodana-jvm-android:2024.1'
arguments: '-l,jetbrains/qodana-jvm-android:2024.2'
os: 'ubuntu-latest'
pr: 'false'
- directory: 'tests/py_error'
arguments: '-l,jetbrains/qodana-python-community:2024.1'
arguments: '-l,jetbrains/qodana-python-community:2024.2'
os: 'ubuntu-latest'
pr: 'true'
- directory: 'tests/py_error'
arguments: '-l,jetbrains/qodana-python-community:2024.1'
arguments: '-l,jetbrains/qodana-python-community:2024.2'
os: 'ubuntu-latest'
pr: 'false'
steps:
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Apply Gradle Qodana Plugin with snapshot version in Gradle configuration file an

```groovy
plugins {
id "org.jetbrains.qodana" version "2024.1.0-SNAPSHOT"
id "org.jetbrains.qodana" version "2024.2.0-SNAPSHOT"
}
qodana {
Expand All @@ -145,7 +145,7 @@ Apply Gradle Qodana Plugin with snapshot version in Gradle configuration file an

```kotlin
plugins {
id("org.jetbrains.qodana") version "2024.1.0-SNAPSHOT"
id("org.jetbrains.qodana") version "2024.2.0-SNAPSHOT"
}

qodana {
Expand Down
8 changes: 4 additions & 4 deletions GRADLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ Apply Gradle plugin `org.jetbrains.qodana` in the Gradle configuration file:
```groovy
plugins {
id "org.jetbrains.qodana" version "2024.1.11"
id "org.jetbrains.qodana" version "2024.2.2"
}
```
- Kotlin DSL – `build.gradle.kts`
```kotlin
plugins {
id("org.jetbrains.qodana") version "2024.1.11"
id("org.jetbrains.qodana") version "2024.2.2"
}
```
Expand Down Expand Up @@ -64,7 +64,7 @@ Add this to your Gradle configuration file:
```groovy
plugins {
// applies Gradle Qodana plugin to use it in project
id "org.jetbrains.qodana" version "2024.1.11"
id "org.jetbrains.qodana" version "2024.2.2"
}
qodana {
Expand All @@ -82,7 +82,7 @@ Add this to your Gradle configuration file:
```kotlin
plugins {
// applies Gradle Qodana plugin to use it in project
id("org.jetbrains.qodana") version "2024.1.11"
id("org.jetbrains.qodana") version "2024.2.2"
}
qodana {
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }} # to check out the actual pull request commit, not the merge commit
fetch-depth: 0 # a full history is required for pull request analysis
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1
uses: JetBrains/qodana-action@v2024.2
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }} # read the steps about it below
```
Expand Down Expand Up @@ -96,7 +96,7 @@ Example configuration:

```yaml
- name: Qodana Scan
uses: JetBrains/qodana-action@v2024.1
uses: JetBrains/qodana-action@v2024.2
with:
pr-mode: false
args: --apply-fixes
Expand Down Expand Up @@ -136,7 +136,7 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1
uses: JetBrains/qodana-action@v2024.2
with:
args: --cleanup
- run: |
Expand Down Expand Up @@ -272,8 +272,8 @@ with:
| `artifact-name` | Specify Qodana results artifact name, used for results uploading. Optional. | `qodana-report` |
| `cache-dir` | Directory to store Qodana cache. Optional. | `${{ runner.temp }}/qodana/caches` |
| `use-caches` | Utilize [GitHub caches](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy) for Qodana runs. Optional. | `true` |
| `primary-cache-key` | Set [the primary cache key](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key). Optional. | `qodana-2024.1-${{ github.ref }}-${{ github.sha }}` |
| `additional-cache-key` | Set [the additional cache key](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key). Optional. | `qodana-2024.1-${{ github.ref }}` |
| `primary-cache-key` | Set [the primary cache key](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key). Optional. | `qodana-2024.2-${{ github.ref }}-${{ github.sha }}` |
| `additional-cache-key` | Set [the additional cache key](https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key). Optional. | `qodana-2024.2-${{ github.ref }}` |
| `cache-default-branch-only` | Upload cache for the default branch only. Optional. | `false` |
| `use-annotations` | Use annotation to mark the results in the GitHub user interface. Optional. | `true` |
| `pr-mode` | Analyze ONLY changed files in a pull request. Optional. | `true` |
Expand Down
4 changes: 2 additions & 2 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ inputs:
primary-cache-key:
description: 'Set the primary cache key'
required: false
default: "qodana-2024.1-${{ github.ref }}-${{ github.sha }}"
default: "qodana-2024.2-${{ github.ref }}-${{ github.sha }}"
additional-cache-key:
description: 'Set the additional cache key'
required: false
default: "qodana-2024.1-${{ github.ref }}"
default: "qodana-2024.2-${{ github.ref }}"
cache-default-branch-only:
description: 'Upload cache for the default branch only'
required: false
Expand Down
14 changes: 7 additions & 7 deletions common/cli.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": "2024.1.11",
"version": "2024.2.2",
"checksum": {
"windows_x86_64": "675f63e1c90b885421b97413ed10bcab913af73cf9d7aa77f949c6399b264276",
"linux_arm64": "fee68a924c1057cffb172500df925f2604bf84e2f43bde746775ad308f876523",
"darwin_arm64": "54fa044339bbede3dd9732d9a7ac9945a8b3b4d0f1593f65f08f13e49a12c28a",
"darwin_x86_64": "ecc15c80bff3fab232c741963b5434ddfff757137b03c930f4bc996ec32e1e20",
"windows_arm64": "96c93813f8d9832c4ac1ce0a800dd64fe3b2b81616681effe6c48ed280589bd1",
"linux_x86_64": "bd6c03ed95356027403b290c6def781831be247ad0294b6b36f916db3e7ae4a1"
"windows_x86_64": "c1a4a07e2bdc4c0a2a7b64c94f5ee9129c7caa173409eaf32e24df8f883e9a3e",
"linux_arm64": "f3971d77f4259371bbef6991b97322725eab8caf19919ed3f5c9487d4e4ca975",
"darwin_arm64": "12fa9f46c0aa5738e376d8f5357784ac0520efca95df37d0ea9050aae1e57cc2",
"darwin_x86_64": "d86e1a3f7c627c712e9cb7cb18ff093fca9951665ba2b081b42c389b4cd99e8b",
"windows_arm64": "23d131979f8849789da3c9e5516dff05bbe83aea5e729270c2febecad500474e",
"linux_x86_64": "819f3a44eb39deb22a162a989b270695c23046f436e3d44673393a66e7c109b9"
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

name=Qodana for Gradle
projectGroup=org.jetbrains.qodana
majorVersion=2024.1
majorVersion=2024.2
buildNumber=0-SNAPSHOT
description=Qodana for Gradle plugin allows to run and configure Qodana analysis for Gradle projects.
tags=qodana,intellij,idea,inspections
Expand Down
10 changes: 5 additions & 5 deletions orb/commands/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ parameters:
Optional.
primary-cache-key:
type: string
default: qodana-2024.1-<< pipeline.git.branch >>-<< pipeline.git.revision >>
default: qodana-2024.2-<< pipeline.git.branch >>-<< pipeline.git.revision >>
description: >
Allows customizing the primary cache hash.
Optional.
additional-cache-key:
type: string
default: qodana-2024.1-<< pipeline.git.branch >>
default: qodana-2024.2-<< pipeline.git.branch >>
description: >
Allows customizing the additional cache hash.
Optional.
Expand All @@ -53,12 +53,12 @@ steps:
name: Qodana Scan
command: |
set -e
QODANA_SHA_256=13a4936eff5fc862171211338768972043979f48923524d4b8eb7314d76fc4f4
CLI_DIRECTORY=/tmp/cache/qodana-cli/2024.1.11
QODANA_SHA_256=0ab1e76c116f3f9bf9465dc2d284eb8c2cbddcf957dcf413d91b3139ca260919
CLI_DIRECTORY=/tmp/cache/qodana-cli/2024.2.2
mkdir -p $CLI_DIRECTORY
if [[ ! -x "$CLI_DIRECTORY/qodana" ]]; then
curl -fsSL https://jb.gg/qodana-cli/install | bash -s -- \
v2024.1.11 $CLI_DIRECTORY \
v2024.2.2 $CLI_DIRECTORY \
1> /dev/null
fi
echo "$QODANA_SHA_256 $CLI_DIRECTORY/qodana" | sha256sum -c
Expand Down
2 changes: 1 addition & 1 deletion orb/examples/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ description: >
usage:
version: 2.1
orbs:
qodana: jetbrains/qodana@2024.1.11
qodana: jetbrains/qodana@2024.2.2
jobs:
code-quality:
machine:
Expand Down
8 changes: 8 additions & 0 deletions plugin/src/main/kotlin/org/jetbrains/qodana/Checksums.kt
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,13 @@ val CHECKSUMS = mapOf(
"linux_arm64" to "338372c285cfd35409769393c357e1af190823317e4ec9d4a04acd37ecfadcda",
"darwin_x86_64" to "74f6f25176fde39018a2ee627ebbbf3a1fb9c6e5b9db911996929ab8d1dd126a",
"darwin_arm64" to "68fff81b14a9725ffcc156f947dd23e8147203c06c952366005021c69ba40a57"
),
"2024.2.2" to mapOf(
"windows_x86_64" to "eff2707f64ce0825e1164ad4b9b6fb604e47f7fb0a6920e7939661b1c8623eaf",
"windows_arm64" to "8849ad5eb4b05553a32199fea8649c55412e2a00655274c7de6728a51064175b",
"linux_x86_64" to "0ab1e76c116f3f9bf9465dc2d284eb8c2cbddcf957dcf413d91b3139ca260919",
"linux_arm64" to "7fce163bd13a0e3f7fe6d8e61f964d1b3143000ac6bb5af76957ccc896012114",
"darwin_x86_64" to "5f110c687367ba3bb47609f5bb64e2216f18bfb8cf44c1c8272846e844932d8b",
"darwin_arm64" to "dc2b444375f8ac15f6a1f5fa33984d199b1c497446798f221a76481f16cae32c"
)
)
2 changes: 1 addition & 1 deletion plugin/src/main/kotlin/org/jetbrains/qodana/Qodana.kt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class Installer {
val log: Logger = Logger.getLogger(Installer::class.java.name)

companion object {
private const val LATEST_VERSION = "v2024.1.11"
private const val LATEST_VERSION = "v2024.2.2"
private const val RELEASE_DOWNLOAD_URL =
"https://github.com/JetBrains/qodana-cli/releases/download/%s/qodana_%s_%s"

Expand Down
4 changes: 2 additions & 2 deletions scan/__tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ test('validate branch names', () => {
'refs/heads/main',
'refs/tags/v1.0.0',
'refs/pull/123/merge',
'v2024.1.11'
'v2024.2.2'
]
for (let branchName of validBranchNames) {
expect(validateBranchName(branchName)).toEqual(branchName)
Expand Down Expand Up @@ -334,7 +334,7 @@ To get \`*.log\` files or any other Qodana artifacts, run the action with \`uplo
so that the action will upload the files as the job artifacts:
\`\`\`yaml
- name: 'Qodana Scan'
uses: JetBrains/qodana-action@v2024.1.11
uses: JetBrains/qodana-action@v2024.2.2
with:
upload-result: true
\`\`\`
Expand Down
14 changes: 7 additions & 7 deletions scan/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24209,14 +24209,14 @@ var require_io = __commonJS({
var version2, checksum;
var init_cli = __esm({
"../common/cli.json"() {
version2 = "2024.1.11";
version2 = "2024.2.2";
checksum = {
windows_x86_64: "675f63e1c90b885421b97413ed10bcab913af73cf9d7aa77f949c6399b264276",
linux_arm64: "fee68a924c1057cffb172500df925f2604bf84e2f43bde746775ad308f876523",
darwin_arm64: "54fa044339bbede3dd9732d9a7ac9945a8b3b4d0f1593f65f08f13e49a12c28a",
darwin_x86_64: "ecc15c80bff3fab232c741963b5434ddfff757137b03c930f4bc996ec32e1e20",
windows_arm64: "96c93813f8d9832c4ac1ce0a800dd64fe3b2b81616681effe6c48ed280589bd1",
linux_x86_64: "bd6c03ed95356027403b290c6def781831be247ad0294b6b36f916db3e7ae4a1"
windows_x86_64: "c1a4a07e2bdc4c0a2a7b64c94f5ee9129c7caa173409eaf32e24df8f883e9a3e",
linux_arm64: "f3971d77f4259371bbef6991b97322725eab8caf19919ed3f5c9487d4e4ca975",
darwin_arm64: "12fa9f46c0aa5738e376d8f5357784ac0520efca95df37d0ea9050aae1e57cc2",
darwin_x86_64: "d86e1a3f7c627c712e9cb7cb18ff093fca9951665ba2b081b42c389b4cd99e8b",
windows_arm64: "23d131979f8849789da3c9e5516dff05bbe83aea5e729270c2febecad500474e",
linux_x86_64: "819f3a44eb39deb22a162a989b270695c23046f436e3d44673393a66e7c109b9"
};
}
});
Expand Down
2 changes: 1 addition & 1 deletion scan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "tsc --build .",
"package": "../node_modules/.bin/esbuild lib/main.js --platform=node --keep-names --bundle --outfile=dist/index.js",
"test": "jest --config jest.config.js",
"readme": "cp ../.github/md/github.md ../README.md && curl -sS https://raw.githubusercontent.com/JetBrains/Qodana/2024.1/topics/github.md >> ../README.md && cat ../.github/md/tracker.md >> ../README.md"
"readme": "cp ../.github/md/github.md ../README.md && curl -sS https://raw.githubusercontent.com/JetBrains/Qodana/2024.2/topics/github.md >> ../README.md && cat ../.github/md/tracker.md >> ../README.md"
},
"repository": {
"type": "git",
Expand Down
14 changes: 7 additions & 7 deletions vsts/QodanaScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
var version, checksum;
var init_cli = __esm({
"../common/cli.json"() {
version = "2024.1.11";
version = "2024.2.2";
checksum = {
windows_x86_64: "675f63e1c90b885421b97413ed10bcab913af73cf9d7aa77f949c6399b264276",
linux_arm64: "fee68a924c1057cffb172500df925f2604bf84e2f43bde746775ad308f876523",
darwin_arm64: "54fa044339bbede3dd9732d9a7ac9945a8b3b4d0f1593f65f08f13e49a12c28a",
darwin_x86_64: "ecc15c80bff3fab232c741963b5434ddfff757137b03c930f4bc996ec32e1e20",
windows_arm64: "96c93813f8d9832c4ac1ce0a800dd64fe3b2b81616681effe6c48ed280589bd1",
linux_x86_64: "bd6c03ed95356027403b290c6def781831be247ad0294b6b36f916db3e7ae4a1"
windows_x86_64: "c1a4a07e2bdc4c0a2a7b64c94f5ee9129c7caa173409eaf32e24df8f883e9a3e",
linux_arm64: "f3971d77f4259371bbef6991b97322725eab8caf19919ed3f5c9487d4e4ca975",
darwin_arm64: "12fa9f46c0aa5738e376d8f5357784ac0520efca95df37d0ea9050aae1e57cc2",
darwin_x86_64: "d86e1a3f7c627c712e9cb7cb18ff093fca9951665ba2b081b42c389b4cd99e8b",
windows_arm64: "23d131979f8849789da3c9e5516dff05bbe83aea5e729270c2febecad500474e",
linux_x86_64: "819f3a44eb39deb22a162a989b270695c23046f436e3d44673393a66e7c109b9"
};
}
});
Expand Down
4 changes: 2 additions & 2 deletions vsts/QodanaScan/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
"author": "JetBrains",
"version": {
"Major": 2024,
"Minor": 1,
"Patch": 11
"Minor": 2,
"Patch": 2
},
"instanceNameFormat": "Qodana Scan",
"inputs": [
Expand Down
2 changes: 1 addition & 1 deletion vsts/vss-extension.dev.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "qodana-dev",
"name": "Qodana (Dev)",
"version": "2024.1.120",
"version": "2024.2.121",
"publisher": "JetBrains",
"targets": [
{
Expand Down
2 changes: 1 addition & 1 deletion vsts/vss-extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"manifestVersion": 1,
"id": "qodana",
"name": "Qodana",
"version": "2024.1.11",
"version": "2024.2.2",
"public": true,
"publisher": "JetBrains",
"targets": [
Expand Down

0 comments on commit 5983adc

Please sign in to comment.