Skip to content

Commit 97f52e3

Browse files
Extend let-unit-in semgrep rule message to warn about parentheses
Co-authored-by: Michael Schwarz <[email protected]>
1 parent eb5052c commit 97f52e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.semgrep/let.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rules:
22
- id: let-unit-in
33
pattern: let () = $E in ...
4-
message: use ; instead
4+
message: use ; instead (and, if needed, add surrounding parentheses to preserve precedence)
55
languages: [ocaml]
66
severity: WARNING

0 commit comments

Comments
 (0)