splint
is a little Go application to analyze Go source files. It finds any functions that are
too long or have too many parameters or results.
These are typical signs that a function is doing too much. We find splint
to be a helpful tool
for detecting potential problem areas in our code, areas that should be refactored. We tolerate long
functions and functions with long parameter/result lists when they are needed, but generally try to
keep them short.
Use go install
:
go install github.com/agflow/splint
This is a fork of splint.