Replies: 4 comments
-
| I guess so. But from usability concept I guess most people would expect output like a report. | 
Beta Was this translation helpful? Give feedback.
-
| I like the idea of measuring code complexity. Is this something that can be reasonably baked into PSScriptAnalyzer with a truly objective set of rules? (For example, the Halstead Volume as described by Codacy.) | 
Beta Was this translation helpful? Give feedback.
-
| We can establish sensible defaults, with two thresholds per metric (e.g.,  The analysis would then result in one or more  Halstead Volume is a candidate, but I think we should strive for The constants here are tuned for the C programming language, and are unlikely to be good for PowerShell. | 
Beta Was this translation helpful? Give feedback.
-
| Whatever algorithm we choose, we need to empirically calibrate it, adjusting the weights, to ensure that the result accurately reflects its maintainability. | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Would having a set of rules for code complexity be a good idea?
Like the number of lines in a method, the number of blocks, the depth of block nesting, etc?
Beta Was this translation helpful? Give feedback.
All reactions