Skip to content

Commit

Permalink
Redo Qodana upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
ahus1 committed Jun 24, 2023
1 parent 282e137 commit 6921f4b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 26 deletions.
26 changes: 3 additions & 23 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,31 +38,14 @@ jobs:
with:
fetch-depth: ${{ github.event.pull_request.commits }}

- name: Download AsciiDoc plugin for AsciiDoc checks
run: |
curl -L -o asciidoctor-intellij-plugin.zip https://github.com/asciidoctor/asciidoctor-intellij-plugin/releases/download/0.38.2/asciidoctor-intellij-plugin-0.38.2.zip
unzip asciidoctor-intellij-plugin.zip
- name: Download Grazie plugin for grammar checks
# https://plugins.jetbrains.com/plugin/12175-grazie/versions
run: |
curl -L -o grazie.zip 'https://plugins.jetbrains.com/plugin/download?rel=true&updateId=257026'
unzip grazie.zip
- name: Download Grazie Professional plugin for grammar checks
# https://plugins.jetbrains.com/plugin/16136-grazie-professional/versions
run: |
curl -L -o grazie-pro.zip 'https://plugins.jetbrains.com/plugin/download?rel=true&updateId=260567'
unzip grazie-pro.zip
- name: Get one more commit so Qodana we can identify the changes
if: github.event_name == 'pull_request'
run: git fetch --deepen=1

- name: Create empty folder to overwrite disabled plugin
run: |
mkdir empty
- name: Get one more commit so Qodana we can identify the changes
if: github.event_name == 'pull_request'
run: git fetch --deepen=1

- name: 'Qodana for Docs'
uses: JetBrains/qodana-action@v2023.1.5
with:
Expand All @@ -75,10 +58,7 @@ jobs:
args: >
--linter,jetbrains/qodana-jvm-community:2023.1,
--property=idea.suppressed.plugins.id=com.intellij.gradle,
-v,${{ github.workspace }}/grazie:/opt/idea/plugins/grazie,
-v,${{ github.workspace }}/empty:/opt/idea/plugins/gradle-java,
-v,${{ github.workspace }}/grazie-pro:/opt/idea/plugins/grazie-pro,
-v,${{ github.workspace }}/asciidoctor-intellij-plugin:/opt/idea/plugins/asciidoctor-intellij-plugin,
--baseline,doc/qodana-baseline.sarif.json
# https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github#example-workflow-that-runs-the-eslint-analysis-tool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,5 @@ include::example$workflow-docs.yml[tags=!cleanup]
The following issues in the Qodana issue tracker are open.
Voting for them will make this integration simpler.

* https://youtrack.jetbrains.com/issue/QD-1291[QD-1291^]
Qodana easy plugin installation
* https://youtrack.jetbrains.com/issue/QD-1290[QD-1290^]
Add soft wrap to code preview

5 changes: 5 additions & 0 deletions qodana.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
version: 1.0
profile:
path: doc/asciidoc-inspection.xml
plugins:
# Grazie plugin ('tanvd.grazi') is already installed, no need to download it again
- id: com.intellij.grazie.pro
# Order of plugin in the order which they depend on. AsciiDoc depends on Qodana pro, therefore add it after
- id: org.asciidoctor.intellij.asciidoc
exclude:
- name: All
paths:
Expand Down

0 comments on commit 6921f4b

Please sign in to comment.