Skip to content

Commit 86bf86a

Browse files
committed
Fix linter again!
1 parent 515a532 commit 86bf86a

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

.golangci.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
version: "2"
2+
run:
3+
allow-parallel-runners: true
4+
linters:
5+
default: none
6+
enable:
7+
- copyloopvar
8+
- dupl
9+
- errcheck
10+
- ginkgolinter
11+
- goconst
12+
- gocyclo
13+
- govet
14+
- ineffassign
15+
- lll
16+
- misspell
17+
- nakedret
18+
- prealloc
19+
- staticcheck
20+
- unconvert
21+
- unparam
22+
- unused
23+
exclusions:
24+
generated: lax
25+
rules:
26+
- linters:
27+
- lll
28+
path: api/*
29+
- linters:
30+
- dupl
31+
- lll
32+
path: internal/*
33+
paths:
34+
- third_party$
35+
- builtin$
36+
- examples$
37+
formatters:
38+
enable:
39+
- gofmt
40+
- goimports
41+
exclusions:
42+
generated: lax
43+
paths:
44+
- third_party$
45+
- builtin$
46+
- examples$

cmd/proxy.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ var proxyCmd = &cobra.Command{
1818
if err != nil {
1919
panic(err)
2020
}
21-
if err := forwarder.ForwardPorts(cmd.Flag("name").Value.String(), cmd.Flag("namespace").Value.String(), cmd.Flag("port").Value.String()); err != nil {
21+
if err := forwarder.ForwardPorts(cmd.Flag("name").Value.String(),
22+
cmd.Flag("namespace").Value.String(),
23+
cmd.Flag("port").Value.String()); err != nil {
2224
panic(err)
2325
}
2426
},

0 commit comments

Comments
 (0)