mirror of
https://github.com/msitarzewski/agency-agents.git
synced 2026-07-13 19:45:17 +03:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f6553d005 |
@@ -58,6 +58,15 @@ lint_file() {
|
|||||||
return
|
return
|
||||||
fi
|
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
|
# 1. Check frontmatter delimiters
|
||||||
local first_line
|
local first_line
|
||||||
first_line=$(head -1 "$file")
|
first_line=$(head -1 "$file")
|
||||||
|
|||||||
Reference in New Issue
Block a user