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.81k stars 246 forks source link

Javascript: handling of anonymous function is supported? #343

Open priyamalart opened 2 years ago

priyamalart commented 2 years ago

I have used this command to check the code complexity for javascript based code: Anonymous function is listed as lines of code exceed 80. How to handle this?

lizard -l javascript -C 15 -T nloc=80 -T cyclomatic_complexity=15

15:39:05 281 3 254 1 281 (anonymous)@109-389@./ric/noma/src/nomaMeas.js 15:39:05 85 1 256 0 85 (anonymous)@62-146@./ric/noma/test/serviceOperationTestsMocha.js