You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hack/golangci-hints.yaml
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,16 @@ issues:
67
67
- gocritic
68
68
text: "ifElseChain: rewrite if-else to switch statement"
69
69
70
+
# Only packages listed here opt into the strict "exported symbols must be documented".
71
+
#
72
+
# Exclude texts from https://github.com/golangci/golangci-lint/blob/ab3c3cd69e602ff53bb4c3e2c188f0caeb80305d/pkg/config/issues.go#L11-L103
73
+
- linters:
74
+
- golint
75
+
- revive
76
+
- stylecheck
77
+
text: comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form|comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form|exported (.+) should have comment( \(or a comment on this block\))? or be unexported|package comment should be of the form "(.+)...|comment on exported (.+) should be of the form "(.+)...|should have a package comment
Copy file name to clipboardExpand all lines: hack/golangci-strict.yaml
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,16 @@ issues:
67
67
- gocritic
68
68
text: "ifElseChain: rewrite if-else to switch statement"
69
69
70
+
# Only packages listed here opt into the strict "exported symbols must be documented".
71
+
#
72
+
# Exclude texts from https://github.com/golangci/golangci-lint/blob/ab3c3cd69e602ff53bb4c3e2c188f0caeb80305d/pkg/config/issues.go#L11-L103
73
+
- linters:
74
+
- golint
75
+
- revive
76
+
- stylecheck
77
+
text: comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form|comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form|exported (.+) should have comment( \(or a comment on this block\))? or be unexported|package comment should be of the form "(.+)...|comment on exported (.+) should be of the form "(.+)...|should have a package comment
78
+
path-except: cmd/kubeadm
79
+
70
80
# The following issues were deemed "might be worth fixing, needs to be
71
81
# decided on a case-by-case basis". This was initially decided by a
72
82
# majority of the developers who voted in
@@ -93,12 +103,6 @@ issues:
93
103
- gosimple
94
104
text: "S1033: unnecessary guard around call to delete"
95
105
96
-
# Only packages listed here opt into the strict "exported symbols must be documented".
97
-
- linters:
98
-
- revive
99
-
text: "(exported: exported .* or be unexported|exported: comment on exported.*should be of the form)"
100
-
path-except: cmd/kubeadm
101
-
102
106
# Didn't make it into https://github.com/kubernetes/kubernetes/issues/117288.
103
107
# Discussion on Slack concluded that "it's hard to have a universal policy for all
104
108
# functions marked deprecated" and thus this can only be a hint which must
Copy file name to clipboardExpand all lines: hack/golangci.yaml
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,16 @@ issues:
73
73
- gocritic
74
74
text: "ifElseChain: rewrite if-else to switch statement"
75
75
76
+
# Only packages listed here opt into the strict "exported symbols must be documented".
77
+
#
78
+
# Exclude texts from https://github.com/golangci/golangci-lint/blob/ab3c3cd69e602ff53bb4c3e2c188f0caeb80305d/pkg/config/issues.go#L11-L103
79
+
- linters:
80
+
- golint
81
+
- revive
82
+
- stylecheck
83
+
text: comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form|comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form|exported (.+) should have comment( \(or a comment on this block\))? or be unexported|package comment should be of the form "(.+)...|comment on exported (.+) should be of the form "(.+)...|should have a package comment
84
+
path-except: cmd/kubeadm
85
+
76
86
# The following issues were deemed "might be worth fixing, needs to be
77
87
# decided on a case-by-case basis". This was initially decided by a
78
88
# majority of the developers who voted in
@@ -99,12 +109,6 @@ issues:
99
109
- gosimple
100
110
text: "S1033: unnecessary guard around call to delete"
101
111
102
-
# Only packages listed here opt into the strict "exported symbols must be documented".
103
-
- linters:
104
-
- revive
105
-
text: "(exported: exported .* or be unexported|exported: comment on exported.*should be of the form)"
106
-
path-except: cmd/kubeadm
107
-
108
112
# Didn't make it into https://github.com/kubernetes/kubernetes/issues/117288.
109
113
# Discussion on Slack concluded that "it's hard to have a universal policy for all
110
114
# functions marked deprecated" and thus this can only be a hint which must
Copy file name to clipboardExpand all lines: hack/golangci.yaml.in
+10-6Lines changed: 10 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,16 @@ issues:
76
76
- gocritic
77
77
text: "ifElseChain: rewrite if-else to switch statement"
78
78
79
+
# Only packages listed here opt into the strict "exported symbols must be documented".
80
+
#
81
+
# Exclude texts from https://github.com/golangci/golangci-lint/blob/ab3c3cd69e602ff53bb4c3e2c188f0caeb80305d/pkg/config/issues.go#L11-L103
82
+
- linters:
83
+
- golint
84
+
- revive
85
+
- stylecheck
86
+
text: comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form|comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form|exported (.+) should have comment( \(or a comment on this block\))? or be unexported|package comment should be of the form "(.+)...|comment on exported (.+) should be of the form "(.+)...|should have a package comment
87
+
path-except: cmd/kubeadm
88
+
79
89
{{- if not .Hints}}
80
90
81
91
# The following issues were deemed "might be worth fixing, needs to be
@@ -104,12 +114,6 @@ issues:
104
114
- gosimple
105
115
text: "S1033: unnecessary guard around call to delete"
106
116
107
-
# Only packages listed here opt into the strict "exported symbols must be documented".
108
-
- linters:
109
-
- revive
110
-
text: "(exported: exported .* or be unexported|exported: comment on exported.*should be of the form)"
111
-
path-except: cmd/kubeadm
112
-
113
117
# Didn't make it into https://github.com/kubernetes/kubernetes/issues/117288.
114
118
# Discussion on Slack concluded that "it's hard to have a universal policy for all
115
119
# functions marked deprecated" and thus this can only be a hint which must
0 commit comments