We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9e833da commit 1d242bcCopy full SHA for 1d242bc
.golangci.yml
@@ -0,0 +1,13 @@
1
+run:
2
+ timeout: 5m
3
+linters:
4
+ disable-all: true
5
+ enable:
6
+ - errcheck
7
+ - gofmt
8
+ - gosimple
9
+ - govet
10
+ - ineffassign
11
+ - staticcheck
12
+ - typecheck
13
+ - unused
Makefile
@@ -31,20 +31,16 @@ build-cross: $(GORELEASER)
31
$(GORELEASER) build --snapshot --clean
32
33
.PHONY: test
34
-test: fmt vet lint
+test: lint
35
go test -v ./...
36
37
.PHONY: lint
38
lint: $(GOLANGCI_LINT)
39
$(GOLANGCI_LINT) run
40
41
-.PHONY: fmt
42
-fmt:
43
- go fmt ./...
44
-
45
-.PHONY: vet
46
-vet:
47
- go vet ./...
+.PHONY: lint-fix
+lint-fix: $(GOLANGCI_LINT)
+ $(GOLANGCI_LINT) run --fix
48
49
README_FILE ?= ./README.md
50
cmd/flag_completion.go
@@ -30,11 +30,11 @@ import (
30
)
var flagChoices = map[string][]string{
- "color": []string{"always", "never", "auto"},
- "completion": []string{"bash", "zsh", "fish"},
- "container-state": []string{stern.RUNNING, stern.WAITING, stern.TERMINATED, stern.ALL_STATES},
- "output": []string{"default", "raw", "json", "extjson", "ppextjson"},
- "timestamps": []string{"default", "short"},
+ "color": {"always", "never", "auto"},
+ "completion": {"bash", "zsh", "fish"},
+ "container-state": {stern.RUNNING, stern.WAITING, stern.TERMINATED, stern.ALL_STATES},
+ "output": {"default", "raw", "json", "extjson", "ppextjson"},
+ "timestamps": {"default", "short"},
}
func runCompletion(shell string, cmd *cobra.Command, out io.Writer) error {
0 commit comments