Skip to content

Commit 9e4aa55

Browse files
authored
Add code inspector GitHub action
This check might work better than the reviewdog, which right now just gives annoying annotations about having tab characters.
1 parent c930c96 commit 9e4aa55

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,24 @@ on:
77
branches: [ master ]
88

99
jobs:
10+
check-quality:
11+
runs-on: ubuntu-latest
12+
name: A job to check my code quality
13+
steps:
14+
- name: Check code meets quality standards
15+
id: code-inspector
16+
uses: codeinspectorio/github-action@master
17+
with:
18+
repo_token: ${{ secrets.GITHUB_TOKEN }}
19+
code_inspector_access_key: ${{ secrets.CODE_INSPECTOR_ACCESS_KEY }}
20+
code_inspector_secret_key: ${{ secrets.CODE_INSPECTOR_SECRET_KEY }}
21+
min_quality_grade: 'NEUTRAL'
22+
min_quality_score: '50'
23+
max_defects_rate: '0.0001'
24+
max_complex_functions_rate: '0.5'
25+
max_long_functions_rate: '0.5'
26+
project_name: ''
27+
max_timeout_sec: '600'
1028
check-java-style:
1129
runs-on: ubuntu-latest
1230

0 commit comments

Comments
 (0)