From 9bc2a7fa25ed19f298d92c6ed7dd99d5449e1940 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Wed, 3 Jun 2020 13:39:56 +0200 Subject: [PATCH] :construction_worker: add Code Inspector via GitHub Action --- .github/workflows/codeinspector.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/codeinspector.yml diff --git a/.github/workflows/codeinspector.yml b/.github/workflows/codeinspector.yml new file mode 100644 index 00000000..43e81aa1 --- /dev/null +++ b/.github/workflows/codeinspector.yml @@ -0,0 +1,23 @@ +name: macOS + +on: [push, pull_request] + +jobs: + check-quality: + runs-on: ubuntu-latest + name: A job to check my code quality + steps: + - name: Check code meets quality standards + id: code-inspector + uses: codeinspectorio/github-action@master + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + code_inspector_access_key: ${{ secrets.CODE_INSPECTOR_ACCESS_KEY }} + code_inspector_secret_key: ${{ secrets.CODE_INSPECTOR_SECRET_KEY }} + min_quality_grade: 'EXCELLENT' + min_quality_score: '50' + max_defects_rate: '0.0001' + max_complex_functions_rate: '0.0001' + max_long_functions_rate: '0.0001' + project_name: '' + max_timeout_sec: '600'