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

Swift: `for` label name count by ccn #265

Closed kijuky closed 5 years ago

kijuky commented 5 years ago

This code's ccn is 1, but lizard output 2.

something(for: .something)

I think that lizard count for label name. So I want that lizard ignore for label name when counting ccn.

terryyin commented 5 years ago

Yes, this probably can be fixed by ignoring "for:"?

kijuky commented 5 years ago

Thank you for your comment!

I tried resolve the issue by PR #266. I have some questions about my solution.

...Should I talk in PR #266 ?

kijuky commented 5 years ago

Thank you for merging! This issue closed!