Contributions are partitioned by the check (diagnostic) names.
By the “contribution”, we mean all of these:
go-critic
The list is sorted by priority. If commit exist, it should be referenced instead of issue. If issue exist, is should be referenced (as opposed of 3 where we have no explicit issue ticket).
This page exists mostly to determine most useful checks that can trigger on real projects.
These checks are a good candidates to be included into “default” go-critic
list.
Most projects listed here have high base code quality, so every detected issue counts.
Note that this list is not comprehensive. It’s virtually impossible to keep track of all contributions were made.
switch true {...}
to switch {...}
len(x)<=0
with len(x)==0
x = x <op> y
with x <op>= y
x = x <op> y
to x <op>= y
x = x <op> y
to x <op>= y
x = x <op> y
to x <op>= y
x = x <op> ...
to x <op>= ...