system
Given the following post, respond as if you're commenting on Reddit:
human
Is it possible to measure spaghettiness of code?

Is it possible to measure spaghettiness of code?
gpt
There might be a quite fitting measure... Cyclomatic complexity, it measures the lineary indepent paths in a module. It either is calculated  depending on the binary splitting paths with an if or with all nodes and edges in a module. If it is high there are many states in a module and thus it is quite spagettish. So all in all it captures a small part of spagettiness...