Skip to content

Commit

Permalink
⚡ Update qodana to 2022.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Feb 8, 2023
1 parent 8df81a5 commit 584b706
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 34 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
with:
fetch-depth: 0
- name: 'Qodana Scan'
uses: JetBrains/[email protected].2
uses: JetBrains/[email protected].3
```
Using this workflow, Qodana will run on the main branch, release branches, and on the pull requests coming to your
Expand All @@ -71,7 +71,7 @@ To send the results to Qodana Cloud, all you need to do is to specify the `QODAN

```yaml
- name: 'Qodana Scan'
uses: JetBrains/[email protected].2
uses: JetBrains/[email protected].3
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}
```
Expand Down Expand Up @@ -151,7 +151,7 @@ qodana scan --show-report

```yaml
- name: Qodana Scan
uses: JetBrains/[email protected].2
uses: JetBrains/[email protected].3
with:
args: --baseline,qodana.sarif.json
```
Expand Down
14 changes: 7 additions & 7 deletions common/qodana.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ export const FAIL_THRESHOLD_OUTPUT =
'The number of problems exceeds the failThreshold'
export const QODANA_SARIF_NAME = 'qodana.sarif.json'
export const QODANA_SHORT_SARIF_NAME = 'qodana-short.sarif.json'
export const VERSION = '2022.3.2'
export const VERSION = '2022.3.3'
export const EXECUTABLE = 'qodana'
export function getQodanaSha256(arch: string, platform: string): string {
switch (`${platform}_${arch}`) {
case 'windows_x86_64':
return 'f9266fc91c4552ac54be8b3a1de59787b02da7d2300422ce13ffdb7a49bf3d20'
return 'bfa0e823962263f8d51036f94152002efd25f6499c3394d26e962e94fe115780'
case 'windows_arm64':
return 'e2f29c30c7db5a901bae22a03cbff081947bdc51e869de09f9b3641d17d5dca2'
return 'aded1dd1765ec9aff5033d9cbd49445dbd4fec13c684d2d015523bbf10f41529'
case 'linux_x86_64':
return '33c2819dae7762303d7a9087deabae1823de98d2bd2316271729aded8f4212ab'
return '166b1f364b80c660ecd644f5c3009fb677bbeae33f58bc5e9e28a3dc6988eb6c'
case 'linux_arm64':
return '74870ad073d0751a4b81e5e2050589cfc9ec2e425336aa3edbfeda81aa185a25'
return '81422f12bccb67dfaa8ab6994a8a5e076d95b39a5ef95b0481d6a2e40c76fc53'
case 'darwin_x86_64':
return 'a83ec03e6b60f0790d73b339fdcc867c9deae5463377b8592c48c8b237c30506'
return 'aa6e2498803cb3c1f2def8bbe7e439e3887e1aac609ca243e0e341cd360d0c91'
case 'darwin_arm64':
return '8fc1fe8ef419969cfcae5b90ca30f5604041676659c2cb2f89e161c4eff355f1'
return '8acc312a46821cf90f94be94b22582fc1aa19a443a80952a292f1fb1c00946d1'
default:
throw new Error(`Qodana CLI does not exist for ${platform}_${arch}`)
}
Expand Down
14 changes: 7 additions & 7 deletions scan/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2796,17 +2796,17 @@ __export(qodana_exports, {
function getQodanaSha256(arch, platform) {
switch (`${platform}_${arch}`) {
case "windows_x86_64":
return "f9266fc91c4552ac54be8b3a1de59787b02da7d2300422ce13ffdb7a49bf3d20";
return "bfa0e823962263f8d51036f94152002efd25f6499c3394d26e962e94fe115780";
case "windows_arm64":
return "e2f29c30c7db5a901bae22a03cbff081947bdc51e869de09f9b3641d17d5dca2";
return "aded1dd1765ec9aff5033d9cbd49445dbd4fec13c684d2d015523bbf10f41529";
case "linux_x86_64":
return "33c2819dae7762303d7a9087deabae1823de98d2bd2316271729aded8f4212ab";
return "166b1f364b80c660ecd644f5c3009fb677bbeae33f58bc5e9e28a3dc6988eb6c";
case "linux_arm64":
return "74870ad073d0751a4b81e5e2050589cfc9ec2e425336aa3edbfeda81aa185a25";
return "81422f12bccb67dfaa8ab6994a8a5e076d95b39a5ef95b0481d6a2e40c76fc53";
case "darwin_x86_64":
return "a83ec03e6b60f0790d73b339fdcc867c9deae5463377b8592c48c8b237c30506";
return "aa6e2498803cb3c1f2def8bbe7e439e3887e1aac609ca243e0e341cd360d0c91";
case "darwin_arm64":
return "8fc1fe8ef419969cfcae5b90ca30f5604041676659c2cb2f89e161c4eff355f1";
return "8acc312a46821cf90f94be94b22582fc1aa19a443a80952a292f1fb1c00946d1";
default:
throw new Error(`Qodana CLI does not exist for ${platform}_${arch}`);
}
Expand Down Expand Up @@ -2884,7 +2884,7 @@ var init_qodana = __esm({
FAIL_THRESHOLD_OUTPUT = "The number of problems exceeds the failThreshold";
QODANA_SARIF_NAME = "qodana.sarif.json";
QODANA_SHORT_SARIF_NAME = "qodana-short.sarif.json";
VERSION = "2022.3.2";
VERSION = "2022.3.3";
EXECUTABLE = "qodana";
__name(getQodanaSha256, "getQodanaSha256");
__name(getProcessArchName, "getProcessArchName");
Expand Down
12 changes: 6 additions & 6 deletions src/commands/scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,20 @@ parameters:
steps:
- restore_cache:
keys:
- qodana-{{ .Branch }}-2022.3.2-<< parameters.additional-cache-hash >>
- qodana-{{ .Branch }}-2022.3.2-
- qodana-{{ .Branch }}-2022.3.3-<< parameters.additional-cache-hash >>
- qodana-{{ .Branch }}-2022.3.3-
- qodana-{{ .Branch }}-
- qodana-
- run:
name: Qodana Scan
command: |
set -e
QODANA_SHA_256=4712869f6e4883910188c66c17be0ce4cfda49c0597dc227ceefb8d03e934e0a
CLI_DIRECTORY=/tmp/cache/qodana-cli/2022.3.2
QODANA_SHA_256=fa489ddceda9578c63dbff5433cc9a7d152d350de66267083d5e634cc5505b65
CLI_DIRECTORY=/tmp/cache/qodana-cli/2022.3.3
mkdir -p $CLI_DIRECTORY
if [[ ! -x "$CLI_DIRECTORY/qodana" ]]; then
curl -fsSL https://jb.gg/qodana-cli/install | bash -s -- \
v2022.3.2 $CLI_DIRECTORY \
v2022.3.3 $CLI_DIRECTORY \
1> /dev/null
fi
echo "$QODANA_SHA_256 $CLI_DIRECTORY/qodana" | sha256sum -c
Expand All @@ -66,7 +66,7 @@ steps:
path: << parameters.results-dir >>
destination: << parameters.artifact-name >>
- save_cache:
key: qodana-{{ .Branch }}-2022.3.2-<< parameters.additional-cache-hash >>
key: qodana-{{ .Branch }}-2022.3.3-<< parameters.additional-cache-hash >>
paths:
- << parameters.cache-dir >>
- /tmp/cache/qodana-cli/
2 changes: 1 addition & 1 deletion src/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/[email protected].2
qodana: jetbrains/[email protected].3
jobs:
code-quality:
machine:
Expand Down
14 changes: 7 additions & 7 deletions vsts/QodanaScan/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,17 @@ __export(qodana_exports, {
function getQodanaSha256(arch, platform) {
switch (`${platform}_${arch}`) {
case "windows_x86_64":
return "f9266fc91c4552ac54be8b3a1de59787b02da7d2300422ce13ffdb7a49bf3d20";
return "bfa0e823962263f8d51036f94152002efd25f6499c3394d26e962e94fe115780";
case "windows_arm64":
return "e2f29c30c7db5a901bae22a03cbff081947bdc51e869de09f9b3641d17d5dca2";
return "aded1dd1765ec9aff5033d9cbd49445dbd4fec13c684d2d015523bbf10f41529";
case "linux_x86_64":
return "33c2819dae7762303d7a9087deabae1823de98d2bd2316271729aded8f4212ab";
return "166b1f364b80c660ecd644f5c3009fb677bbeae33f58bc5e9e28a3dc6988eb6c";
case "linux_arm64":
return "74870ad073d0751a4b81e5e2050589cfc9ec2e425336aa3edbfeda81aa185a25";
return "81422f12bccb67dfaa8ab6994a8a5e076d95b39a5ef95b0481d6a2e40c76fc53";
case "darwin_x86_64":
return "a83ec03e6b60f0790d73b339fdcc867c9deae5463377b8592c48c8b237c30506";
return "aa6e2498803cb3c1f2def8bbe7e439e3887e1aac609ca243e0e341cd360d0c91";
case "darwin_arm64":
return "8fc1fe8ef419969cfcae5b90ca30f5604041676659c2cb2f89e161c4eff355f1";
return "8acc312a46821cf90f94be94b22582fc1aa19a443a80952a292f1fb1c00946d1";
default:
throw new Error(`Qodana CLI does not exist for ${platform}_${arch}`);
}
Expand Down Expand Up @@ -141,7 +141,7 @@ var init_qodana = __esm({
FAIL_THRESHOLD_OUTPUT = "The number of problems exceeds the failThreshold";
QODANA_SARIF_NAME = "qodana.sarif.json";
QODANA_SHORT_SARIF_NAME = "qodana-short.sarif.json";
VERSION = "2022.3.2";
VERSION = "2022.3.3";
EXECUTABLE = "qodana";
QodanaExitCode = /* @__PURE__ */ ((QodanaExitCode2) => {
QodanaExitCode2[QodanaExitCode2["Success"] = 0] = "Success";
Expand Down
2 changes: 1 addition & 1 deletion vsts/QodanaScan/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"version": {
"Major": 2022,
"Minor": 3,
"Patch": 2
"Patch": 3
},
"demands": ["RemoteDockerServerOS -equals linux"],
"instanceNameFormat": "Qodana Scan",
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": "2022.3.2",
"version": "2022.3.3",
"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": "2022.3.2",
"version": "2022.3.3",
"public": true,
"publisher": "JetBrains",
"targets": [
Expand Down

0 comments on commit 584b706

Please sign in to comment.