Skip to content

Commit

Permalink
halstead
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Apr 5, 2024
1 parent a6e410e commit df52157
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions metrics/multimetric.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ temp="${TARGET}/temp/multimetric.json"
mkdir -p "$(dirname "${temp}")"
echo "${body}" > "${temp}"
cat <<EOT> "${output}"
HSD $(echo "${body}" | jq '.halstead_difficulty' | "${LOCAL}/help/float.sh") \href{https://en.wikipedia.org/wiki/Halstead_complexity_measures}{Halstead Difficulty}
HSE $(echo "${body}" | jq '.halstead_effort' | "${LOCAL}/help/float.sh") \href{https://en.wikipedia.org/wiki/Halstead_complexity_measures}{Halstead Effort}
HSV $(echo "${body}" | jq '.halstead_volume' | "${LOCAL}/help/float.sh") \href{https://en.wikipedia.org/wiki/Halstead_complexity_measures}{Halstead Volume}
HSD $(echo "${body}" | jq '.halstead_difficulty' | "${LOCAL}/help/float.sh") Halstead Difficulty~\citep{halstead1977elements}
HSE $(echo "${body}" | jq '.halstead_effort' | "${LOCAL}/help/float.sh") Halstead Effort~\citep{halstead1977elements}
HSV $(echo "${body}" | jq '.halstead_volume' | "${LOCAL}/help/float.sh") Halstead Volume~\citep{halstead1977elements}
MIdx $(echo "${body}" | jq '.maintainability_index' | "${LOCAL}/help/float.sh") Maintainability Index~\citep{coleman1994}
FOut $(echo "${body}" | jq '.fanout_external' | "${LOCAL}/help/float.sh") \href{https://en.wikipedia.org/wiki/Fan-out_(software)}{Fan-Out}
EOT
11 changes: 10 additions & 1 deletion tex/report.bib
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,17 @@ @article{coleman1994
author = {Coleman, Don and Ash, Dan and Lowther, Bruce and Oman, Paul},
doi = {10.1109/2.303623},
journal = {{Computer}},
volume={27},
number={8},
publisher = {IEEE},
title = {{Using Metrics to Evaluate Software System Maintainability}},
year = {1994},
doi={10.1109/2.303623}
}

@book{halstead1977elements,
author = {Halstead, Maurice H.},
doi = {10.5555/540137},
publisher = {Elsevier},
title = {{Elements of Software Science (Operating and Programming Systems Series)}},
year = {1977},
}

0 comments on commit df52157

Please sign in to comment.