golangci / golangci-lint

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

docs: add a way to link linter without settings on the linter page #4841

Open ccoVeille opened 5 days ago

ccoVeille commented 5 days ago

Welcome

Your feature request related to a problem? Please describe

Sometimes I want to share documentation about a specific linter to someone, but for some of them I cannot

Right now, there are anchors on linters with settings, but none on the others.

Be able to link https://golangci-lint.run/usage/linters/#bodyclose

the same we link https://golangci-lint.run/usage/linters/#gosimple

right now this link point to the settings (it might change after my PR and discussion), maybe it's something that need to be changed, but it's out of the scope of what I'm reporting.

I'm sure that we will iterate if my suggestion is accepted.

Describe the solution you'd like

So it's about adding a <span id="bodyclose">bodyclose</span instead of using bodyclose text

Describe alternatives you've considered

Ask people to use CTRL+F :rofl:

Additional context

No response

Supporter

Antonboom commented 5 days ago

faced with this issue a lot of times