golangci / golangci-lint

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

docs: add link on linter without configuration #4843

Closed ldez closed 2 months ago

ldez commented 3 months ago

This PR creates an invisible span with ID to generate an anchor for all linter names.

Result:

Screenshot 2024-06-26 at 09-04-04 Linters golangci-lint

link example: http://localhost:8000/usage/linters/#bodyclose

This also fixes:

Fixes #4841

ldez commented 3 months ago

GitHub icon newlined somewhere

It's just related to the size of the cell, it's expected because it's a table and the icon is not a character, I cannot fix that. FYI there is already a non-breakable space ( ) between the text and the icon.

"Top" button have underscore

It's not an underscore but a link decoration: the emoji is a character and not an image so the "text" of the link has a decoration.

Also, offtop, in contribution guideline need to fix .reference to next.reference

I updated the file name.

ldez commented 3 months ago

I replaced the emoji with an icon.

Before: Screenshot 2024-06-26 at 08-34-28 Linters golangci-lint

After: Screenshot 2024-06-26 at 08-34-18 Linters golangci-lint

ldez commented 3 months ago

ping @Antonboom

ldez commented 2 months ago

I just do not realize why we receive different column width in equal sections?

because it's 2 separated tables.

Antonboom commented 2 months ago

because it's 2 separated tables.

but why in the second one the description width is shorter? with equal rems

ccoVeille commented 2 months ago

That's why we do backend. Because we have no patience for such mess and nonsense.

I don't understand how frontend can work without becoming insane 😁

ldez commented 2 months ago

but why in the second one the description width is shorter? with equal rems

Because the sizes of the cells are computed based on the size of the cells of one table. As there are 2 tables, there are 2 different computations. The 2 tables don't have the same content, so the cell sizes are different.