Skip to content

Commit

Permalink
Ignore local .git folder
Browse files Browse the repository at this point in the history
  • Loading branch information
skinkie committed Feb 21, 2025
1 parent 56bdc12 commit 30bee81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/scripts/validate-and-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ echo "Validating XML file structure and linting XSD and XML files ..."
PARSING_ERROR=0
# Iterate all XML and XSD files
while IFS= read -r -d $'\0' filename; do
if [[ "$filename" =~ \.git/ ]]; then
continue # Skip files inside the .git directory
fi
# Prettify the file using xmllint and save the result to ${filename}.pretty
if XMLLINT_INDENT=$'\t' xmllint --encode UTF-8 --pretty 1 "${filename}" >"${filename}.pretty"; then
# Remove lines containing the term "xmlspy" to get rid of advertising this and save the result as ${filename}
Expand Down

0 comments on commit 30bee81

Please sign in to comment.