mgechev / revive

🔥 ~6x faster, stricter, configurable, extensible, and beautiful drop-in replacement for golint
https://revive.run
MIT License
4.69k stars 269 forks source link

feat: capitalise var naming to IDs #964

Closed VincentBaron closed 5 months ago

VincentBaron commented 5 months ago

var-naming does not check that ID is capitalised when it is plural such as IDs. For example if I have uIds := []string{} it will allow this var name where really it should return var uIds should be uIDs.

Closes #947

chavacava commented 5 months ago

Hi @VincentBaron, thanks for the PR! Could you please add some test cases.

VincentBaron commented 5 months ago

I added a test for this case :)

VincentBaron commented 5 months ago

@denisvmedia do you know when you are planning the next tag? As I am using revive via golangci-lint I will need to do a PR to them to update to your latest version :)