Skip to content

Commit

Permalink
chore: 优化自动import排序
Browse files Browse the repository at this point in the history
  • Loading branch information
Redmomn committed Feb 14, 2025
1 parent 089fe9f commit abe4ff9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ jobs:
- name: Sort Imports
run: |
export PATH="$PATH:$GOPATH/bin"
go install github.com/incu6us/goimports-reviser@latest
pwd
find . -name "*.go" | xargs -I {} goimports-reviser -file-path {} -project-name "github.com/LagrangeDev/LagrangeGo"
go install -v github.com/incu6us/goimports-reviser/v3@latest
make sort
- name: GolangCI-Lint
uses: golangci/golangci-lint-action@v6
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@ protoFiles:
fmt:
go vet -stdmethods=false ./...

sort:
goimports-reviser -imports-order std,blanked,general,company,project -excludes .git/,client/packets/pb/*.go -recursive ./..

.EXPORT_ALL_VARIABLES:
GO111MODULE = on

0 comments on commit abe4ff9

Please sign in to comment.