Skip to content

Commit 955c7d3

Browse files
committed
add build exclude directive to checkers/go test files
Signed-off-by: Maharshi Basu <basumaharshi10@gmail.com>
1 parent 22fd414 commit 955c7d3

25 files changed

+39
-8
lines changed

checkers/go/cgi_import.test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ignore
1+
//go:build exclude
22

33
package main
44

checkers/go/des_weak_crypto.test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ignore
1+
//go:build exclude
22

33
import (
44
"crypto/des"

checkers/go/fmt_print_in_prod.test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go: build ignore
1+
//go:build exclude
22

33
// <expect-error>
44
fmt.Print()

checkers/go/grpc_client_insecure_tls.test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ignore
1+
//go:build exclude
22

33
func unsafe() {
44
// <expect-error> insecure grpc dial

checkers/go/grpc_server_insecure_tls.test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ignore
1+
//go:build exclude
22

33
func unsafe() {
44
// <expect-error> insecure grpc tls server

checkers/go/html_req_template_injection.test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ignore
1+
//go:build exclude
22

33
import (
44
"fmt"

checkers/go/http_file_server.test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ignore
1+
//go:build exclude
22

33
package main
44

checkers/go/insecure_cookie.test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//go:build ignore
1+
//go:build exclude
22

33
// <expect-error>
44
http.SetCookie(&http.Cookie{

checkers/go/jwt_harcoded_signing_key.test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build exclude
2+
13
import (
24
"fmt"
35
"log"

checkers/go/jwt_none_algorithm.test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//go:build exclude
2+
13
package main
24

35
import (

0 commit comments

Comments
 (0)