Обновить .gitea/workflows/detekt.yml
Detekt / Detekt analysis (push) Successful in 26s

This commit is contained in:
2026-10-08 09:21:40 +00:00
parent c246b732ce
commit 0f40b3bf30
+8 -4
View File
@@ -33,19 +33,19 @@ jobs:
https://github.com/detekt/detekt/releases/download/v1.23.6/detekt-cli-1.23.6-all.jar
- name: Run Detekt
id: detekt
shell: bash
run: |
set +e
java -jar detekt-cli.jar \
--input . \
--base-path . \
--report txt:detekt-report.txt \
--report checkstyle:detekt-checkstyle.xml
--report checkstyle:detekt-checkstyle.xml \
> detekt-console-output.txt 2>&1
echo $? > detekt-exit-code.txt
# Detekt может завершить процесс с кодом 2,
# но следующий шаг должен всё равно выполниться.
exit 0
- name: Show readable Detekt report
@@ -106,8 +106,12 @@ jobs:
line_number=$(echo "$location" | cut -d: -f2)
column_number=$(echo "$location" | cut -d: -f3)
repo_url="${{ gitea.server_url }}/${{ gitea.repository }}"
file_url="$repo_url/src/commit/${{ gitea.sha }}/$file#L$line_number"
echo "🔴 [$rule]"
echo " 📍 $file:$line_number:$column_number"
echo " 🔗 $file_url"
echo " 💬 $message"
else
echo "🔴 $line"