add golangci-lint (2nd sast tool)

This commit is contained in:
vovuas2003 2026-03-09 09:11:19 -04:00
parent 29d1c32e9d
commit 0573622056
3 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,5 @@
internal/ui/console.go:62:3: QF1003: could use tagged switch on resp (staticcheck)
if resp == "y" || resp == "yes" {
^
1 issues:
* staticcheck: 1

View file

@ -4,7 +4,6 @@
# --------------------------------------
echo "Установка curl"
sudo apt update
sudo apt install -y curl
@ -12,5 +11,7 @@ echo "Создание директории для результатов ана
mkdir -p sast_results
echo "Установка bearer"
curl -sfL https://raw.githubusercontent.com/Bearer/bearer/main/contrib/install.sh | sh
echo "Установка golangci-lint"
curl -sSfL https://golangci-lint.run/install.sh | sh -s v2.11.2

View file

@ -6,4 +6,7 @@
echo "Запуск bearer"
./bin/bearer scan --output sast_results/bearer.txt .
echo "Запуск golangci-lint"
./bin/golangci-lint run > sast_results/golangci-lint.txt
echo "Анализ завершён, результаты в sast_results"