Skip to content

Commit cc2995c

Browse files
committed
refactor: fix language breakdown with consistent formatting
1 parent 808b680 commit cc2995c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/analyze-code.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
9292
if [[ "$HL" == *",$LANG,"* ]]; then
9393
FORMATTED=$(format_number "$LINES")
94-
FORMATTED_BREAKDOWN+=$(printf "%s --> %s lines\n" "$LANG" "$FORMATTED")$'\n'
94+
FORMATTED_BREAKDOWN+=$(printf "%-12s --> %10s lines\n" "$LANG" "$FORMATTED")$'\n'
9595
else
9696
OTHER_LINES=$((OTHER_LINES + LINES))
9797
fi
@@ -106,7 +106,7 @@ jobs:
106106
# Add Others (formatted)
107107
if [[ $OTHER_LINES -gt 0 ]]; then
108108
FORMATTED_OTHER=$(format_number "$OTHER_LINES")
109-
FORMATTED_BREAKDOWN+=$(printf "%s --> %s lines\n" "Others" "$FORMATTED_OTHER")$'\n'
109+
FORMATTED_BREAKDOWN+=$(printf "%-12s --> %10s lines\n" "Others" "$FORMATTED_OTHER")$'\n'
110110
fi
111111
112112
# Format total ONCE (do not overwrite later)

0 commit comments

Comments
 (0)