File tree Expand file tree Collapse file tree 6 files changed +6
-5
lines changed Expand file tree Collapse file tree 6 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 34
34
- name : golangci-lint
35
35
uses : golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # tag=v8.0.0
36
36
with :
37
- version : v2.4 .0
37
+ version : v2.5 .0
38
38
args : --output.text.print-linter-name=true --output.text.colors=true --timeout 10m
39
39
working-directory : ${{matrix.working-directory}}
Original file line number Diff line number Diff line change @@ -22,10 +22,12 @@ linters:
22
22
- goconst
23
23
- gocritic
24
24
- gocyclo
25
+ - godoclint
25
26
- goprintffuncname
26
27
- govet
27
28
- importas
28
29
- ineffassign
30
+ - iotamixing
29
31
- makezero
30
32
- misspell
31
33
- nakedret
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
+ // Package pkg contains API Schema definitions for the chaosapps v1 API group
17
18
// +kubebuilder:object:generate=true
18
19
// +groupName=chaosapps.metamagical.io
19
20
package pkg
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import (
28
28
type authenticator struct {
29
29
}
30
30
31
- // authenticator admits a request by the token.
31
+ // Handle admits a request by the token.
32
32
func (a * authenticator ) Handle (ctx context.Context , req authentication.Request ) authentication.Response {
33
33
if req .Spec .Token == "invalid" {
34
34
return authentication .Unauthenticated ("invalid is an invalid token" , v1.UserInfo {})
Original file line number Diff line number Diff line change @@ -14,8 +14,6 @@ See the License for the specific language governing permissions and
14
14
limitations under the License.
15
15
*/
16
16
17
- // Package zap contains helpers for setting up a new logr.Logger instance
18
- // using the Zap logging framework.
19
17
package zap
20
18
21
19
import (
Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ type terminalError struct {
174
174
err error
175
175
}
176
176
177
- // This function will return nil if te.err is nil.
177
+ // Unwrap returns nil if te.err is nil.
178
178
func (te * terminalError ) Unwrap () error {
179
179
return te .err
180
180
}
You can’t perform that action at this time.
0 commit comments