Skip to content

Commit

Permalink
Add Semgrep rule for incorrect Stats.time usage
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed May 17, 2022
1 parent a544002 commit 3f81ffd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .semgrep/stats.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
rules:
- id: stats-time-partial
patterns:
- pattern: Stats.time $NAME $FUNC $ARG $BADARG ...
message: Stats.time measuring only partial, not complete function application (see https://goblint.readthedocs.io/en/latest/developer-guide/profiling/#stats)
languages: [ocaml]
severity: ERROR

0 comments on commit 3f81ffd

Please sign in to comment.