🐛 修复 Qodana 不运行的问题x3

This commit is contained in:
BTMuli
2023-07-29 12:44:00 +08:00
parent 28ab533060
commit d960d21177
2 changed files with 34 additions and 3 deletions

View File

@@ -6,7 +6,6 @@ on:
branches:
- master
version: 1.0
jobs:
qodana:
runs-on: ubuntu-latest
@@ -14,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: 'Qodana Scan'
- name: "Qodana Scan"
uses: JetBrains/qodana-action@v2022.3.4
env:
QODANA_TOKEN: ${{ secrets.QODANA_TOKEN }}

32
qodana.yaml Normal file
View File

@@ -0,0 +1,32 @@
#-------------------------------------------------------------------------------#
# Qodana analysis is configured by qodana.yaml file #
# https://www.jetbrains.com/help/qodana/qodana-yaml.html #
#-------------------------------------------------------------------------------#
version: "1.0"
#Specify inspection profile for code analysis
profile:
name: qodana.starter
#Enable inspections
#include:
# - name: <SomeEnabledInspectionId>
#Disable inspections
#exclude:
# - name: <SomeDisabledInspectionId>
# paths:
# - <path/where/not/run/inspection>
#The following options are only applied in CI/CD environment
#These options are ignored during local run
#Execute shell command before Qodana execution
#bootstrap: sh ./prepare-qodana.sh
#Install IDE plugins before Qodana execution
#plugins:
# - id: <plugin.id> #(plugin id can be found at https://plugins.jetbrains.com)
#Specify Qodana linter for analysis
linter: jetbrains/qodana-js:latest