mirror of
https://github.com/unclebob/crapper.git
synced 2026-11-07 10:33:50 +00:00
Fix the coverage, git, and Clojure bugs, and bring CRAP under 10.
A path in a built-in coverage command is one argument, a failed custom coverage command does not read a stale report, and git failures exit with git's status. The Clojure reader honors discards, metadata, and character literals. Long functions are split so every score is under 10 except the option switch.
This commit is contained in:
@@ -5,7 +5,18 @@ set -euo pipefail
|
||||
ROOT="$(cd "$(dirname "$0")" && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
DEPS='{:deps {uml-viewer/uml-viewer {:local/root "/Users/unclebob/projects/uml-viewer"} quil/quil {:mvn/version "4.3.1563"}}}'
|
||||
if [[ -n "${UML_VIEWER_ROOT:-}" ]]; then
|
||||
VIEWER="$UML_VIEWER_ROOT"
|
||||
else
|
||||
VIEWER="$ROOT/../uml-viewer"
|
||||
fi
|
||||
if [[ ! -d "$VIEWER" ]]; then
|
||||
echo "uml-viewer checkout not found at $VIEWER" >&2
|
||||
echo "Set UML_VIEWER_ROOT to the checkout." >&2
|
||||
exit 1
|
||||
fi
|
||||
VIEWER="$(cd "$VIEWER" && pwd)"
|
||||
DEPS="{:deps {uml-viewer/uml-viewer {:local/root \"$VIEWER\"} quil/quil {:mvn/version \"4.3.1563\"}}}"
|
||||
|
||||
edn_path() {
|
||||
local name base f
|
||||
|
||||
Reference in New Issue
Block a user