markdownlint: disable line length via config
We don't want the markdownlint warning for line length when in a table
or code block but even with those disabled, markdownlint sometimes
gives spurious warnings. Disable it with a config rather than as an
argument.
We will end up getting the code reformatted with prettier anyhow which
will handle line lengths on its own.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: I6a6d2b2c798266ef067ba2b6b1e02279b59e1461
diff --git a/scripts/format-code.sh b/scripts/format-code.sh
index 7b8ffda..2982443 100755
--- a/scripts/format-code.sh
+++ b/scripts/format-code.sh
@@ -252,8 +252,7 @@
LINTER_IGNORE+=([markdownlint]=".markdownlint-ignore")
LINTER_TYPES+=([markdownlint]="markdown")
function do_markdownlint() {
- markdownlint --config "${LINTER_CONFIG[markdownlint]}" \
- --disable line-length -- "$@" || \
+ markdownlint --config "${LINTER_CONFIG[markdownlint]}" -- "$@" || \
echo -e " ${YELLOW}Failed markdownlint; temporarily ignoring."
# We disable line-length because prettier should handle prose wrap for us.
}