Skip to content

Commit

Permalink
add todo false positives (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
GrosQuildu authored Nov 15, 2024
1 parent fb6bc88 commit 828ee71
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 828ee71

Please sign in to comment.