Skip to content

Commit

Permalink
⚡ Update qodana to 2022.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tiulpin committed Jan 26, 2023
1 parent f16dee2 commit b87102b
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 33 deletions.
4 changes: 2 additions & 2 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/qodana-action@v2022.3.0
uses: JetBrains/qodana-action@v2022.3.2
```

Using this workflow, Qodana will run on the main branch, release branches, and on the pull requests coming to your
Expand Down Expand Up @@ -131,7 +131,7 @@ qodana scan --show-report

```yaml
- name: Qodana Scan
uses: JetBrains/qodana-action@v2022.3.0
uses: JetBrains/qodana-action@v2022.3.2
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.0'
export const VERSION = '2022.3.2'
export const EXECUTABLE = 'qodana'
export function getQodanaSha256(arch: string, platform: string): string {
switch (`${platform}_${arch}`) {
case 'windows_x86_64':
return '29ad4104e62766bf3445ba3940a625843a19a71cfefbf3ebda1f71372d7ec937'
return 'f9266fc91c4552ac54be8b3a1de59787b02da7d2300422ce13ffdb7a49bf3d20'
case 'windows_arm64':
return '44ea5d3b8853556491188e98fa31518c5e74f2a4d04c4e9dd449e829096759f5'
return 'e2f29c30c7db5a901bae22a03cbff081947bdc51e869de09f9b3641d17d5dca2'
case 'linux_x86_64':
return '6e92fa152d2bd2d18689920df0fba7d7aa5a94295089cede8eec054cd78b851c'
return '33c2819dae7762303d7a9087deabae1823de98d2bd2316271729aded8f4212ab'
case 'linux_arm64':
return '558508bd593c1a6027ec17d3feff338eb12e8c44e72890072405300f47b72ee5'
return '74870ad073d0751a4b81e5e2050589cfc9ec2e425336aa3edbfeda81aa185a25'
case 'darwin_x86_64':
return 'ebdf550347d3c0fa84eee09d4a063237006a0034b5391340d034124bc5591cfc'
return 'a83ec03e6b60f0790d73b339fdcc867c9deae5463377b8592c48c8b237c30506'
case 'darwin_arm64':
return '9c8baca0796a3cbb1a743f716bde6c90d5a38f85348f54d8eb08e62084b1b0a1'
return '8fc1fe8ef419969cfcae5b90ca30f5604041676659c2cb2f89e161c4eff355f1'
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 "29ad4104e62766bf3445ba3940a625843a19a71cfefbf3ebda1f71372d7ec937";
return "f9266fc91c4552ac54be8b3a1de59787b02da7d2300422ce13ffdb7a49bf3d20";
case "windows_arm64":
return "44ea5d3b8853556491188e98fa31518c5e74f2a4d04c4e9dd449e829096759f5";
return "e2f29c30c7db5a901bae22a03cbff081947bdc51e869de09f9b3641d17d5dca2";
case "linux_x86_64":
return "6e92fa152d2bd2d18689920df0fba7d7aa5a94295089cede8eec054cd78b851c";
return "33c2819dae7762303d7a9087deabae1823de98d2bd2316271729aded8f4212ab";
case "linux_arm64":
return "558508bd593c1a6027ec17d3feff338eb12e8c44e72890072405300f47b72ee5";
return "74870ad073d0751a4b81e5e2050589cfc9ec2e425336aa3edbfeda81aa185a25";
case "darwin_x86_64":
return "ebdf550347d3c0fa84eee09d4a063237006a0034b5391340d034124bc5591cfc";
return "a83ec03e6b60f0790d73b339fdcc867c9deae5463377b8592c48c8b237c30506";
case "darwin_arm64":
return "9c8baca0796a3cbb1a743f716bde6c90d5a38f85348f54d8eb08e62084b1b0a1";
return "8fc1fe8ef419969cfcae5b90ca30f5604041676659c2cb2f89e161c4eff355f1";
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.0";
VERSION = "2022.3.2";
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 @@ -38,20 +38,20 @@ parameters:
steps:
- restore_cache:
keys:
- qodana-{{ .Branch }}-2022.3.0-<< parameters.additional-cache-hash >>
- qodana-{{ .Branch }}-2022.3.0-
- qodana-{{ .Branch }}-2022.3.2-<< parameters.additional-cache-hash >>
- qodana-{{ .Branch }}-2022.3.2-
- qodana-{{ .Branch }}-
- qodana-
- run:
name: Qodana Scan
command: |
set -e
QODANA_SHA_256=4e2128054a6c5a3206c707a7e6b30f4a96cce6d21a3b3196d7038db229a23c89
CLI_DIRECTORY=/tmp/cache/qodana-cli/2022.3.0
QODANA_SHA_256=4712869f6e4883910188c66c17be0ce4cfda49c0597dc227ceefb8d03e934e0a
CLI_DIRECTORY=/tmp/cache/qodana-cli/2022.3.2
mkdir -p $CLI_DIRECTORY
if [[ ! -x "$CLI_DIRECTORY/qodana" ]]; then
curl -fsSL https://jb.gg/qodana-cli/install | bash -s -- \
v2022.3.0 $CLI_DIRECTORY \
v2022.3.2 $CLI_DIRECTORY \
1> /dev/null
fi
echo "$QODANA_SHA_256 $CLI_DIRECTORY/qodana" | sha256sum -c
Expand All @@ -63,7 +63,7 @@ steps:
path: << parameters.results-dir >>
destination: << parameters.artifact-name >>
- save_cache:
key: qodana-{{ .Branch }}-2022.3.0-<< parameters.additional-cache-hash >>
key: qodana-{{ .Branch }}-2022.3.2-<< 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/qodana@2022.3.0
qodana: jetbrains/qodana@2022.3.2
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 "29ad4104e62766bf3445ba3940a625843a19a71cfefbf3ebda1f71372d7ec937";
return "f9266fc91c4552ac54be8b3a1de59787b02da7d2300422ce13ffdb7a49bf3d20";
case "windows_arm64":
return "44ea5d3b8853556491188e98fa31518c5e74f2a4d04c4e9dd449e829096759f5";
return "e2f29c30c7db5a901bae22a03cbff081947bdc51e869de09f9b3641d17d5dca2";
case "linux_x86_64":
return "6e92fa152d2bd2d18689920df0fba7d7aa5a94295089cede8eec054cd78b851c";
return "33c2819dae7762303d7a9087deabae1823de98d2bd2316271729aded8f4212ab";
case "linux_arm64":
return "558508bd593c1a6027ec17d3feff338eb12e8c44e72890072405300f47b72ee5";
return "74870ad073d0751a4b81e5e2050589cfc9ec2e425336aa3edbfeda81aa185a25";
case "darwin_x86_64":
return "ebdf550347d3c0fa84eee09d4a063237006a0034b5391340d034124bc5591cfc";
return "a83ec03e6b60f0790d73b339fdcc867c9deae5463377b8592c48c8b237c30506";
case "darwin_arm64":
return "9c8baca0796a3cbb1a743f716bde6c90d5a38f85348f54d8eb08e62084b1b0a1";
return "8fc1fe8ef419969cfcae5b90ca30f5604041676659c2cb2f89e161c4eff355f1";
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.0";
VERSION = "2022.3.2";
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": 0
"Patch": 2
},
"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.0",
"version": "2022.3.2",
"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.0",
"version": "2022.3.2",
"public": true,
"publisher": "JetBrains",
"targets": [
Expand Down

0 comments on commit b87102b

Please sign in to comment.