Closed ugniusramanauskas closed 8 months ago
Thanks for raising this! You're quite right, these numbers are erroneously flipped.
Fix coming via #98
This fix is now available in v2.0.0. Thanks!
@sgb-io -- thanks so much for fixing it so quickly! I can see the new "v2.0.0" tag, but no release yet. When do you plan on marking it as an official release? Just curious.
@ugniusramanauskas the Rust crate and npm package have been available for a few days, but I forgot to publish the Github release. I have now done so. Thanks!
Your documentation (as well as other Halstead documentations) clearly states:
However, your code does the opposite -- i.e. adds unique values in
program_length
, and totals invocabulary_size
:As a result, all the other derivative measures - Volume, Difficulty, Effort, etc. - are also incorrectly calculated.
p.s. Let me know if I can help with correcting this.