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.84k stars 248 forks source link

Implement argument to set duplicate threshold and add possibility to skip part of file #379

Open consultsoped opened 1 year ago

consultsoped commented 1 year ago

It would be nice to have the ability to set a duplicate threshold somehow in order to control when code is marked as duplicate. It could be a line or character based threshold.

The GENERATED CODE comment option is fine but it would be nice to have the ability to suppress only a section of code. Sometimes code just can't be refactored in a meaningful way or without loss of readability. I suggest something like using a comment line "// lizard duplicate off/on"