mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-08-26 21:19:40 +03:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0f6553d005 |
@@ -58,6 +58,15 @@ lint_file() {
|
||||
return
|
||||
fi
|
||||
|
||||
# 0. Reject CRLF line endings (repo standard is LF — see .gitattributes).
|
||||
# A trailing \r otherwise makes the frontmatter check below fail with a
|
||||
# confusing "missing frontmatter ---" even when the file clearly starts ---.
|
||||
if LC_ALL=C grep -q $'\r' "$file"; then
|
||||
echo "ERROR $file: CRLF line endings detected — convert to LF (e.g. 'perl -i -pe \"s/\\r\$//\" $file'); repo uses LF per .gitattributes"
|
||||
errors=$((errors + 1))
|
||||
return
|
||||
fi
|
||||
|
||||
# 1. Check frontmatter delimiters
|
||||
local first_line
|
||||
first_line=$(head -1 "$file")
|
||||
|
||||
Reference in New Issue
Block a user