diff --git a/README.md b/README.md index 80f680a..0add97c 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,8 @@ Find problems in your Markdown files, get pull requests with fixes Get consistency across your Markdown files. -* Run MarkdownLint with the same consistent configuration across all of your -projects +* Run [MarkdownLint](https://github.com/DavidAnson/markdownlint) with +the same consistent configuration across all of your projects * Also supports repository-specific MarkdownLint configurations * Uses GitHub Checks with code-level annotations for linting rule violations * Optionally get commits or pull requests with fixes diff --git a/markdownlint.matcher.json b/markdownlint.matcher.json index a920ec9..e44f981 100644 --- a/markdownlint.matcher.json +++ b/markdownlint.matcher.json @@ -1,7 +1,7 @@ { "name": "markdownlint", "severity": "error", - "report": "error", + "report": "always", "pattern": [ { "regexp": "^([^:]*):(\\d+):?(\\d+)?\\s([\\w-\\/]*)\\s(.*)$", diff --git a/markdownlint.sh b/markdownlint.sh index 8e1668a..6a59189 100755 --- a/markdownlint.sh +++ b/markdownlint.sh @@ -59,6 +59,11 @@ function main () { if [[ $branch == markdownlint-* ]]; then exit 0 fi + # Bail if no Markdown files exists in current project + if [[ -z $(find . -name '*.md') ]]; then + exit 0 + fi + local outdir=${ATOMIST_OUTPUT_DIR:-/atm/output}