ghost is a command-line tool for locating overly complex lines of code in Go.
It is designed with the intention that code should strive to be written in a
linear, rather than nested way. This makes code easier to understand, highlights
duplicate logic and ultimately leads to less bugs.
go get -u github.com/elliotchance/ghost
Pass one or multiple Go files:
ghost file1.go file2.go
-ignore-tests - Ignore test files.
-max-line-complexity - The maximum allowed line complexity. (default 5)
-never-fail - Always exit with 0.
The output of ghost (with default options) describes that line 50 is too