Remix.run Logo
runningmike 2 days ago

To do a Simple Cyclomatic Complexity check, operating on the principle that secure systems are simple systems, you can use https://github.com/nocomplexity/codeaudit or try the wasm version on https://nocomplexity.com/codeauditapp/dashboardapp.html

Complexity directly impacts security. Simple systems are: Maintainable: Easier to change and manage. Reliable: Less prone to logic errors. Testable: Easier to validate and test.

RaftPeople 2 days ago | parent | next [-]

There was a study I read recently that analyzed the different complexity metrics and tested whether they relate to developers ability to understand the code.

Most of them, especially Cyclomatic, did not align very well with the ability to understand, there was only one of the standard ones (can't remember which one) that kind of got close.

bmitc 15 hours ago | parent [-]

If you can remember or find the reference, I'm interested!

RaftPeople 9 hours ago | parent [-]

I think this is the one: https://pmc.ncbi.nlm.nih.gov/articles/PMC9942489

bmitc 8 hours ago | parent [-]

Thanks!

kuzivaai 2 days ago | parent | prev [-]

appreciate this!