feat: add goconcurrencylint#6496
Conversation
|
Hey, thank you for opening your first Pull Request ! |
|
In order for a pull request adding a linter to be reviewed, the linter and the PR must follow some requirements.
Pull Request Description
Base RequirementsThese requirements are not declarative; the team will verify them.
Linter
The Linter Tests Inside Golangci-lint
|
|
Hi @ldez, thanks for start reviewing the checks of the PR let me know if you need anything from my side, happy to clarify or justify whatever part you need!. |
This pull request adds support for goconcurrencylint to golangci-lint.
Linter repository: https://github.com/sanbricio/goconcurrencylint
goconcurrencylint is a
go/analysis-based linter that detects misuse ofsync.Mutex,sync.RWMutex, andsync.WaitGroup. It performs flow-sensitive intraprocedural analysis to catch bugs such as lock withoutunlock,unlockwithout priorlock,WaitGroup.Addwithout matchingDone,DonewithoutAdd, andAdd/Goafter an emptyWait, including control-flow-dependent cases and package-level declarations spread across multiple files.