Skip to content

Commit

Permalink
ci: disable Go test semgrep rules (#12175)
Browse files Browse the repository at this point in the history
  • Loading branch information
lgfa29 committed Mar 3, 2022
1 parent a9f1dbe commit c3a4abc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .semgrep/go_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rules:
# TODO(luiz): figure out how to do a 'delete line' fix.
fix: " "
paths:
exclude: ["*"]
include:
- "*_test.go"

Expand Down Expand Up @@ -43,6 +44,7 @@ rules:
severity: "WARNING"
fix: "assert.$FUNC($T, $...ARGS)"
paths:
exclude: ["*"]
include:
- "*_test.go"
- id: "tests-no-assert-without-t-nested"
Expand All @@ -64,6 +66,7 @@ rules:
severity: "WARNING"
fix: "assert.$FUNC($T, $...ARGS)"
paths:
exclude: ["*"]
include:
- "*_test.go"
- id: "tests-no-require-without-t"
Expand Down Expand Up @@ -91,6 +94,7 @@ rules:
severity: "WARNING"
fix: "require.$FUNC($T, $...ARGS)"
paths:
exclude: ["*"]
include:
- "*_test.go"
- id: "tests-no-require-without-t-nested"
Expand All @@ -112,5 +116,6 @@ rules:
severity: "WARNING"
fix: "require.$FUNC($T, $...ARGS)"
paths:
exclude: ["*"]
include:
- "*_test.go"

0 comments on commit c3a4abc

Please sign in to comment.