Skip to content

Commit

Permalink
Extend semgrep tracing rule for abbreviated module name
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Nov 1, 2024
1 parent a080563 commit 62cb655
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .semgrep/tracing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,16 @@ rules:
- pattern: Messages.tracec
- pattern: Messages.traceu
- pattern: Messages.traceli
- pattern: M.trace
- pattern: M.tracel
- pattern: M.tracei
- pattern: M.tracec
- pattern: M.traceu
- pattern: M.traceli
- pattern-not-inside: if Messages.tracing then ...
- pattern-not-inside: if Messages.tracing && ... then ...
- pattern-not-inside: if M.tracing then ...
- pattern-not-inside: if M.tracing && ... then ...
message: trace functions should only be called if tracing is enabled at compile time
languages: [ocaml]
severity: WARNING

0 comments on commit 62cb655

Please sign in to comment.