Skip to content
Snippets Groups Projects
Commit 5363cbec authored by František Řezníček's avatar František Řezníček
Browse files

feat: add summary of errors and warnings

parent c30d39ac
No related branches found
No related tags found
No related merge requests found
Pipeline #452945 passed with stages
in 45 minutes and 26 seconds
......@@ -15,6 +15,11 @@ pylint:
- grep 'Your code has been rated' pylint.log
- rating=$(grep 'Your code has been rated' pylint.log | grep -Eo '[0-9]+(\.[0-9]+)?' | head -1)
- awk -v "r=${rating}" -v "min_r=${MIN_PYLINT_RATING}" 'BEGIN{ if(r<min_r){exit(126)} }'
after_script:
- echo "Code errors:"
- grep -E 'E[0-9]{2,}:' pylint.log || true
- echo "Code warnings:"
- grep -E 'W[0-9]{2,}:' pylint.log || true
artifacts:
expire_in: 1 mo
when: always
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment