Add gocritic linter, fix a bunch of stuff (#7377)

Brace yourselves! For there are many touched files here. No changes
in semantics however.

Spent a long time trying out the various optional rules gocritic
provides, and settled for a few of them. There are more I really
like, but that would take many hours to address across the codebase.

Perhaps others find gocritic too pedantic? If so, we can merge the
fixes without enabling the rule.

Signed-off-by: Anders Eknert <anders@styra.com>
This commit is contained in:
Anders Eknert
2025-02-24 16:28:41 +01:00
committed by GitHub
parent 16762d7825
commit afb30d3f9d
118 changed files with 389 additions and 514 deletions
+1 -1
View File
@@ -1 +1 @@
1.23.6
1.24.0