Skip to content

Commit

Permalink
fix go lock rules messages
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosQuildu committed Apr 3, 2024
1 parent f182941 commit 71d915c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion go/missing-runlock-on-rwmutex.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rules:
- id: missing-runlock-on-rwmutex
message: >-
Missing `RUnlock` on an `RWMutex` lock before returning from a function
Missing `RUnlock` on an `RWMutex` (`$T` variable) lock before returning from a function
languages: [go]
severity: ERROR
metadata:
Expand Down
2 changes: 1 addition & 1 deletion go/missing-unlock-before-return.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
rules:
- id: missing-unlock-before-return
message: >-
Missing mutex unlock before returning from a function.
Missing mutex unlock (`$T` variable) before returning from a function.
This could result in panics resulting from double lock operations
languages: [go]
severity: ERROR
Expand Down

0 comments on commit 71d915c

Please sign in to comment.