Skip to content

Commit

Permalink
Makefile: adjust lint target
Browse files Browse the repository at this point in the history
Enable linter for examples, scripts and interop packages.

Signed-off-by: Anna Shaleva <[email protected]>
  • Loading branch information
AnnaShaleva committed Oct 10, 2024
1 parent 56673f9 commit e2b0095
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,22 @@ vet:
curl -L -o $@ https://github.com/nspcc-dev/.github/raw/master/.golangci.yml

lint: .golangci.yml
@golangci-lint run
-@golangci-lint run ./...
-@cd ./examples/engine/ && golangci-lint run
-@cd ./examples/events/ && golangci-lint run
-@cd ./examples/iterator/ && golangci-lint run
-@cd ./examples/nft-d/ && golangci-lint run
-@cd ./examples/nft-nd/ && golangci-lint run
-@cd ./examples/nft-nd-nns/ && golangci-lint run
-@cd ./examples/oracle/ && golangci-lint run
-@cd ./examples/runtime/ && golangci-lint run
-@cd ./examples/storage/ && golangci-lint run
-@cd ./examples/timer/ && golangci-lint run
-@cd ./examples/token/ && golangci-lint run
-@cd ./examples/zkp/cubic_circuit/ && golangci-lint run
-@cd ./examples/zkp/xor_compat/ && golangci-lint run
-@cd ./scripts/ && golangci-lint run ./...
-@cd ./pkg/interop/ && golangci-lint run ./...

fmt:
@gofmt -l -w -s $$(find . -type f -name '*.go'| grep -v "/vendor/")
Expand Down

0 comments on commit e2b0095

Please sign in to comment.