github.com/GuanceCloud/cliutils@v1.1.21/Makefile (about)

     1  lint: lint_deps
     2  	@golangci-lint --version
     3  	@golangci-lint run --fix | tee lint.err # https://golangci-lint.run/usage/install/#local-installation
     4  
     5  lint_deps: gofmt vet
     6  
     7  vet:
     8  	@go vet ./...
     9  
    10  gofmt:
    11  	@GO111MODULE=off gofmt -l $(shell find . -type f -name '*.go'| grep -v "/vendor/\|/.git/")
    12  
    13  copyright_check:
    14  	@python3 copyright.py --dry-run && \
    15  		{ echo "copyright check ok"; exit 0; } || \
    16  		{ echo "copyright check failed"; exit -1; }
    17  
    18  copyright_check_auto_fix:
    19  	@python3 copyright.py --fix
    20  
    21  test:
    22  		LOGGER_PATH=nul CGO_CFLAGS=-Wno-undef-prefix go test -test.v -timeout 99999m -cover ./...