mirror of
https://github.com/ivuorinen/gibidify.git
synced 2026-02-06 08:49:21 +00:00
fix: refactor Makefile to fix checkmake maxbodylength violations (#95)
This commit is contained in:
25
scripts/lint-fix.sh
Executable file
25
scripts/lint-fix.sh
Executable file
@@ -0,0 +1,25 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
echo "Running gofumpt..."
|
||||
gofumpt -l -w .
|
||||
echo "Running golines..."
|
||||
golines -w -m 120 --base-formatter="gofumpt" --shorten-comments .
|
||||
echo "Running goimports..."
|
||||
goimports -w -local github.com/ivuorinen/gibidify .
|
||||
echo "Running go fmt..."
|
||||
go fmt ./...
|
||||
echo "Running go mod tidy..."
|
||||
go mod tidy
|
||||
echo "Running shfmt formatting..."
|
||||
shfmt -w -i 0 -ci .
|
||||
echo "Running golangci-lint with --fix..."
|
||||
golangci-lint run --fix ./...
|
||||
echo "Auto-fix completed. Running final lint check..."
|
||||
golangci-lint run ./...
|
||||
echo "Running revive..."
|
||||
revive -config revive.toml -formatter friendly ./...
|
||||
echo "Running checkmake..."
|
||||
checkmake --config=.checkmake Makefile
|
||||
echo "Running yamllint..."
|
||||
yamllint .
|
||||
Reference in New Issue
Block a user