golangci / golangci-lint

Fast linters runner for Go
https://golangci-lint.run
GNU General Public License v3.0
14.84k stars 1.34k forks source link

docs: add an anchor on every linter #4842

Closed ccoVeille closed 1 week ago

ccoVeille commented 1 week ago

This will help to link linters without settings

Fixes #4841

ccoVeille commented 1 week ago

This implementation is VERY NAIVE and should be considered as Proof of Concept.

It's likely to be incomplete and would request to review and iterate.

For example:

ldez commented 1 week ago

This approach cannot work because it will create duplicate IDs, so the links on linters with settings will not work.

I created a PR with a working approach: #4843

ccoVeille commented 6 days ago

This approach cannot work because it will create duplicate IDs, so the links on linters with settings will not work.

I created a PR with a working approach: #4843

I don't think my code was creating duplicate it, but never mind I'm glad you opened something better than my PR to fix the issue I reported