Skip to content

Commit 225f0f9

Browse files
committed
tests: ignore cgo tests for some linters
1 parent fe88914 commit 225f0f9

File tree

10 files changed

+40
-0
lines changed

10 files changed

+40
-0
lines changed

pkg/golinters/exhaustive/testdata/exhaustive_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Eexhaustive
26
package testdata
37

pkg/golinters/gci/testdata/gci_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Egci
26
//golangcitest:config_path testdata/gci.yml
37
package testdata

pkg/golinters/godot/testdata/godot_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Egodot
26
package testdata
37

pkg/golinters/goheader/testdata/goheader_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
/*MY TITLE!*/ // want `Expected:TITLE\., Actual: TITLE!`
26

37
//golangcitest:args -Egoheader

pkg/golinters/gosec/testdata/gosec_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Egosec
26
package testdata
37

pkg/golinters/ineffassign/testdata/ineffassign_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Eineffassign
26
package testdata
37

pkg/golinters/testableexamples/testdata/testableexamples_test_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Etestableexamples
26
package testdata
37

pkg/golinters/unparam/testdata/unparam_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Eunparam
26
package testdata
37

pkg/golinters/unused/testdata/unused_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Eunused
26
package testdata
37

pkg/golinters/wsl/testdata/wsl_cgo.go

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
//go:build ignore
2+
3+
// TODO(ldez) the linter doesn't support cgo.
4+
15
//golangcitest:args -Ewsl
26
//golangcitest:config_path testdata/wsl.yml
37
package testdata

0 commit comments

Comments
 (0)