Skip to content

Commit

Permalink
test: fix missing conf file at markdownlint
Browse files Browse the repository at this point in the history
  • Loading branch information
attilasomogyi committed Mar 26, 2023
1 parent 8f6c39e commit fece5d5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"default": true,
"line-length": false,
"MD001": false,
"MD024": false,
"MD033": { "allowed_elements": ["a", "p", "img"] },
"MD041": false
}
1 change: 1 addition & 0 deletions .markdownlintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
21 changes: 21 additions & 0 deletions tests/static/test_helper/static.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

function print_errors() {
for line in "${lines[@]}"; do
echo "$line"
done
}

function shellcheck_test() {
shellcheck_url="https://github.com/koalaman/shellcheck"

which shellcheck > /dev/null || {
echo "shellcheck not found, please install: $shellcheck_url"
exit 1
}

scripts=$(find . -name '*.sh' -name '*.bash')
for script in $scripts; do
shellcheck "$script"
done
}

0 comments on commit fece5d5

Please sign in to comment.