Skip to content

Commit

Permalink
#25 hsvol
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Oct 13, 2023
1 parent c987ae8 commit c9af517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions metrics/multimetric.sh
Expand Up @@ -32,5 +32,6 @@ body=$(echo "${json}" | jq '.overall')
cat <<EOT> "${output}"
hsdif $(echo "${body}" | jq '.halstead_difficulty') Halstead Difficulty
hsef $(echo "${body}" | jq '.halstead_effort') Halstead Effort
hsvol $(echo "${body}" | jq '.halstead_volume') Halstead Volume
midx $(echo "${body}" | jq '.maintainability_index') Maintainability Index
EOT
1 change: 1 addition & 0 deletions tests/metrics/test-multimetric.sh
Expand Up @@ -47,6 +47,7 @@ EOT
cat "${temp}/stdout"
grep "hsdif 6.188" "${temp}/stdout"
grep "hsef 758.735" "${temp}/stdout"
grep "hsvol 122.624" "${temp}/stdout"
grep "midx 100" "${temp}/stdout"
} >> "${stdout}" 2>&1
echo "👍🏻 Correctly counted lines of code"

0 comments on commit c9af517

Please sign in to comment.