kevastator / 461-acme-service

ECE 461 Phase 1 tool for open source software repo metric calculations
GNU Lesser General Public License v2.1
0 stars 3 forks source link

Ramp Up Metric Manually #39

Closed TylerSivertsen closed 1 week ago

TylerSivertsen commented 1 week ago

Fully Resolves #11 and Resolves #12 . This metric calculation was taken from the makefile and was transcribed into a typescript file where no external halstead metric calculating modules are called. This now performs the halstead metric calculation manually using acorn and acorn-walk as a parsing tool to get the operators/operands in all of the javascript files. The only parameter it takes now is the directory of the code you want to analyze (all javascript files are found within the directory recursively and are analyzed). Also the current upper limit for the time is 100 hours, but this can be changed in the file towards the bottom (it is labeled with comments).