Skip to content

Commit

Permalink
add todo false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosQuildu committed Nov 14, 2024
1 parent fb6bc88 commit 90da98f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions go/missing-runlock-on-rwmutex.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ func (c *RWContainer) inc6b(name string) error {
defer func() {
fmt.Println("before runlock")
unlocker()
// todook: missing-runlock-on-rwmutex
fmt.Println("after runlock")
}()
// todook: missing-runlock-on-rwmutex
Expand Down
1 change: 1 addition & 0 deletions go/missing-unlock-before-return.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ func (c *Container) inc6b(name string) error {
defer func() {
fmt.Println("before unlock")
unlocker()
// todook: missing-unlock-before-return
fmt.Println("after unlock")
}()
// todook: missing-unlock-before-return
Expand Down

0 comments on commit 90da98f

Please sign in to comment.