generated from admin/template
This commit is contained in:
@@ -25,16 +25,34 @@ jobs:
|
|||||||
|
|
||||||
- name: Run Detekt
|
- name: Run Detekt
|
||||||
run: |
|
run: |
|
||||||
java -jar detekt-cli-1.23.6-all.jar --input . --report txt:detekt-report.txt
|
java -jar detekt-cli-1.23.6-all.jar \
|
||||||
|
--input . \
|
||||||
|
--report sarif:detekt-report.sarif \
|
||||||
|
--report txt:detekt-report.txt
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Show Detekt report
|
- name: Show Detekt summary
|
||||||
run: cat detekt-report.txt
|
run: |
|
||||||
|
echo ""
|
||||||
|
echo "════════════════════════════════════════"
|
||||||
|
echo "📊 Detekt Analysis Complete"
|
||||||
|
echo "════════════════════════════════════════"
|
||||||
|
echo ""
|
||||||
|
TOTAL=$(wc -l < detekt-report.txt)
|
||||||
|
echo "Всего нарушений: $TOTAL"
|
||||||
|
echo ""
|
||||||
|
echo "🔴 Топ-15 проблем:"
|
||||||
|
echo "────────────────────────────────────────"
|
||||||
|
head -n 15 detekt-report.txt
|
||||||
|
echo "────────────────────────────────────────"
|
||||||
|
echo ""
|
||||||
|
echo "💡 Полный отчёт доступен во вкладке Actions → артефакты"
|
||||||
|
echo "════════════════════════════════════════"
|
||||||
if: always()
|
if: always()
|
||||||
|
|
||||||
- name: Upload Detekt report
|
- name: Upload SARIF report
|
||||||
uses: actions/upload-artifact@v4
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: detekt-report
|
sarif_file: detekt-report.sarif
|
||||||
path: detekt-report.txt
|
check_name: Detekt
|
||||||
Reference in New Issue
Block a user