diff options
| author | Shulhan <ms@kilabit.info> | 2022-04-16 01:36:20 +0700 |
|---|---|---|
| committer | Shulhan <ms@kilabit.info> | 2022-04-16 18:32:36 +0700 |
| commit | 8947cc8b6a9751b3cae3d4d22fdf3ac154f77dfd (patch) | |
| tree | 7251c221bc3d4a324a6bdaca7a215d75bbb310ca /Makefile | |
| parent | dfc441b32458d204dae6498867f08e7da483c815 (diff) | |
| download | rescached-8947cc8b6a9751b3cae3d4d22fdf3ac154f77dfd.tar.xz | |
all: apply suggestions from linter
List of changes,
* Remove unused constants keyIsEnabled, keyIsSystem, and keyLastUpdated.
* Use the method String on instance of Duration instead of fmt.Sprintf.
* Replace any usage of io/ioutil package with its replacement.
* Check for error from calling Environment.init and Zone.Add.
* Prefix all returned error on hostsBlock.update method.
* Add "lint" task as part of default target, build.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -33,7 +33,7 @@ DIR_BIN=/usr/bin DIR_MAN=/usr/share/man DIR_RESCACHED=/usr/share/rescached -build: test memfs_generate.go +build: lint test memfs_generate.go mkdir -p _bin/$(GOOS)_$(GOARCH) CGO_ENABLED=$(CGO_ENABLED) GOOS=$(GOOS) GOARCH=$(GOARCH) \ go build $(DEBUG) -o _bin/$(GOOS)_$(GOARCH)/ ./cmd/... @@ -52,7 +52,7 @@ test.prof: -memprofile $(MEM_PROF) ./... lint: - -golangci-lint run --enable-all ./... + -golangci-lint run ./... memfs_generate.go: .FORCE go run ./cmd/rescached embed |
