Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

If I had to do a 'code quality' checker I think I'd try to use some combination of syntax tree analysis, data flow analysis, and LOC changed.

Something like that.

Too many new nodes in the syntax tree, or a sub-tree that appears sufficiently similar to another sub-tree (for various definitions of similar), data-flow/side effects gets more convoluted, too many LOC, and so on.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: