Skip to content

Commit aeb98b1

Browse files
authored
ci: ensure that testutility.Skip is used over t.Skip and friends (#1596)
While it's not been a massive issue or anything, it's pretty easy to enforce and means one less thing for us maintainers to remember when reviewing
1 parent 844b737 commit aeb98b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: .golangci.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ linters:
3333
- unused
3434

3535
linters-settings:
36+
forbidigo:
37+
forbid:
38+
- p: ^testing.T.Skip
39+
pkg: ^testing$
40+
msg: "go-snaps needs to know the test has been skipped, so use `testutility.Skip` instead"
41+
analyze-types: true
3642
govet:
3743
settings:
3844
printf:

0 commit comments

Comments
 (0)