Skip to content

Commit

Permalink
iox-#921 Run markdownlint for all files
Browse files Browse the repository at this point in the history
Signed-off-by: Ziad Mostafa <[email protected]>
  • Loading branch information
zmostafa committed May 3, 2023
1 parent c55612d commit 374c367
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/scripts/markdownlint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ if [[ "$SCOPE" == "hook"* ]]; then
echo "${md_files}" | sed 's/^/\ -\ /g'
echo

git ls-files | grep -E "\.md"| xargs markdownlint --output ./markdownlint.log --config ./.markdownlint.yaml --fix

for file in $md_files ; do
if [ -f "$file" ]; then
$MARKDOWNLINT_CMD --output ./markdownlint.log --config ./.markdownlint.yaml "${file}"
git add "${file}"
fi
done
Expand Down

0 comments on commit 374c367

Please sign in to comment.