Skip to content

Commit

Permalink
add note about other tool
Browse files Browse the repository at this point in the history
  • Loading branch information
gsquire committed Nov 27, 2023
1 parent 824ba90 commit 3c0c887
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

A simple linter to find `defer` statements inside of for loops in Go source.

## Other Works
See #12 for an existing tool (`staticcheck`).

## Why?
It's often erroneous to use `defer` inside of a loop as it can lead to memory leaks or other
unintended behavior. It can also be easy to miss this in a code review as using `defer` to
Expand Down

0 comments on commit 3c0c887

Please sign in to comment.