Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions analysis/fixtures/checkers/test_checker.test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
def myFunc(b: str) -> bool:
assert str != "hello"
return True

b = 20
assert b > 10
11 changes: 11 additions & 0 deletions analysis/fixtures/checkers/test_checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: py
name: test_checker
message: "This is a test checker"
category: security
severity: warning

pattern: |
(assert_statement) @test_checker

description: |
This is a test checker used in unit tests.
Loading