-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: complex IfStmt false negatives (#94)
* Add nested BinaryExpr to httpstatus IfStmt tests Signed-off-by: Spencer Schrock <sschrock@google.com> * Check ast.BinaryExpr for HTTP Method and StatusCode This represents a more general case of IfStmt, ForStmt and SwitchStmt Signed-off-by: Spencer Schrock <sschrock@google.com> * update httpstatus template for valid IfStmt uses too Signed-off-by: Spencer Schrock <sschrock@google.com> --------- Signed-off-by: Spencer Schrock <sschrock@google.com>
- Loading branch information
1 parent
0946e00
commit 5149298
Showing
3 changed files
with
263 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.