terryyin / lizard

A simple code complexity analyser without caring about the C/C++ header files or Java imports, supports most of the popular languages.
Other
1.85k stars 250 forks source link

Fixed Issue 267: guard clause is not counted by ccn. #268

Closed kijuky closed 5 years ago

kijuky commented 5 years ago

This code's ccn is 2.

guard isValid else { return }

This code is equal if isValid { return }, so lizard shold output 2.

terryyin commented 5 years ago

Sorry for the delayed response. Thanks!

kijuky commented 5 years ago

Thank you for merging!