gitee.com/wgliang/goreporter@v0.0.0-20180902115603-df1b20f7c5d0/linters/depth/README.md (about)

     1  # godepth
     2  Count the maxdepth of go functions. It's helpful to see if a function
     3  needs to be splitted into several smaller functions, for readability
     4  purpose.
     5  
     6  To install, run
     7  
     8      $ go get github.com/arthurgustin/godepth
     9  
    10  # examples:
    11  
    12      $ godepth .
    13      $ godepth -over 3
    14      $ godepth -avg