fzipp / gocyclo

Calculate cyclomatic complexities of functions in Go source code.
BSD 3-Clause "New" or "Revised" License
1.33k stars 81 forks source link

Proposal: Add option to ignore error checking if statements that return only an error #50

Open jkrooncoding opened 1 year ago

jkrooncoding commented 1 year ago

While technically correct, in my opinion if err != nil checks don't really add complexity to a function from the programmers' standpoint. It would be nice to have an option to ignore these statements in functions.