File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 11TEST? =./...
22GOFMT_FILES? =$$(find . -name '*.go' |grep -v vendor )
33PKG_NAME =tencentcloud
4+ CHANGED_FILES =$$(git diff --name-only master -- $(PKG_NAME ) )
45WEBSITE_REPO =github.com/hashicorp/terraform-website
56PLATFORMS =darwin/amd64 freebsd/386 freebsd/amd64 freebsd/arm linux/386 linux/amd64 linux/arm openbsd/amd64 openbsd/386 solaris/amd64 windows/386 windows/amd64
67GO_VER ?= go
2526 goimports -w ./$(PKG_NAME )
2627 gofmt -s -w ./$(PKG_NAME )
2728
29+ fmt-faster :
30+ @echo " ==> [Faster]Fixing source code with gofmt...\n $( CHANGED_FILES) \n"
31+ goimports -w $(CHANGED_FILES )
32+ gofmt -s -w $(CHANGED_FILES )
33+
2834# Currently required by tf-deploy compile
2935fmtcheck :
3036 @sh -c " '$( CURDIR) /scripts/gofmtcheck.sh'"
You can’t perform that action at this time.
0 commit comments