From c934f6a3f28cd8c9fc0863c80efcad3de01fb129 Mon Sep 17 00:00:00 2001 From: Dom Amato Date: Fri, 10 Jul 2020 23:48:20 -0500 Subject: [PATCH] add code inspection --- .../{testlint.yml => testlintinspect.yml} | 15 +++++++++++++++ 1 file changed, 15 insertions(+) rename .github/workflows/{testlint.yml => testlintinspect.yml} (65%) diff --git a/.github/workflows/testlint.yml b/.github/workflows/testlintinspect.yml similarity index 65% rename from .github/workflows/testlint.yml rename to .github/workflows/testlintinspect.yml index 05ab249..d6f836a 100644 --- a/.github/workflows/testlint.yml +++ b/.github/workflows/testlintinspect.yml @@ -37,3 +37,18 @@ jobs: pip install coveralls pytest-cov pytest --cov=Hologram tests/ coveralls + + - 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: 'WARNING' + 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'