-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from JetBrains/v2.2-eap-baseline
V2.2 eap baseline
- Loading branch information
Showing
6 changed files
with
142 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: Qodana - Code Inspection Example | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
|
||
jobs: | ||
qodana: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache Qodana dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/work/_temp/_github_home/qodana-cache | ||
key: ${{ runner.os }}-qodana-${{ github.ref }} | ||
restore-keys: | | ||
${{ runner.os }}-qodana-${{ github.ref }} | ||
${{ runner.os }}-qodana- | ||
- name: Qodana - Code Inspection | ||
uses: JetBrains/[email protected] | ||
with: | ||
fail-threshold: 1 | ||
baseline: ".github/workflows/baseline.sarif.json" | ||
baseline-include-absent: true | ||
|
||
- name: Save Qodana's results to artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
path: ${{ github.workspace }}/qodana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"version": "2.1.0", | ||
"runs": [ | ||
{ | ||
"tool": { | ||
"driver": { | ||
"name": "qodana-intellij", | ||
"fullName": "Qodana Intellij Linter", | ||
"version": "212.5145", | ||
"rules": [], | ||
"taxa": [], | ||
"language": "en-US", | ||
"contents": [ | ||
"localizedData", | ||
"nonLocalizedData" | ||
], | ||
"isComprehensive": false | ||
}, | ||
"extensions": [] | ||
}, | ||
"invocations": [ | ||
{ | ||
"exitCode": 0, | ||
"executionSuccessful": true | ||
} | ||
], | ||
"language": "en-US", | ||
"results": [], | ||
"automationDetails": { | ||
"id": "project - 9/14/21, 12:51 PM", | ||
"guid": "6819b8c2-dd31-4203-b37f-345f02c6a5bf" | ||
}, | ||
"newlineSequences": [ | ||
"\r\n", | ||
"\n" | ||
] | ||
} | ||
] | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/bash | ||
|
||
get_str_arg_or_empty() { | ||
local argument_name=$1 | ||
local argument_value=$2 | ||
[ -n "$argument_value" ] && echo "$argument_name $argument_value" || echo "" | ||
} | ||
|
||
get_bool_arg_or_empty() { | ||
local argument_name=$1 | ||
local argument_value=$2 | ||
[ "$argument_value" == "true" ] && echo "$argument_name" || echo "" | ||
} | ||
|
||
mkdir -p "$RESULTS_DIR" "$CACHE_DIR" | ||
|
||
docker run -u $UID -v "$PROJECT_DIR:/data/project" -v "$RESULTS_DIR:/data/results" \ | ||
-v "$CACHE_DIR:/data/cache" jetbrains/qodana:2021.2-eap \ | ||
$(get_str_arg_or_empty "-d" "$INSPECTED_DIR") \ | ||
$(get_str_arg_or_empty "-b" "$BASELINE") \ | ||
$(get_bool_arg_or_empty "--baseline-include-absent" "$BASELINE_INCLUDE_ABSENT") \ | ||
$(get_str_arg_or_empty "--fail-threshold" "$FAIL_THRESHOLD") \ | ||
$(get_bool_arg_or_empty "--save-report" "$SAVE_HTML_REPORT") \ | ||
$(get_str_arg_or_empty "-profileName" "$PROFILE_NAME") \ | ||
$(get_str_arg_or_empty "-profilePath" "$PROFILE_PATH") |