scripts: add markdownlint to check_format

Signed-off-by: wawryk <maciejx.wawryk@intel.com>
Change-Id: I0f5a351fcdbf417a18e388432088c8bea6f12143
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8883
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Monica Kenguva <monica.kenguva@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
wawryk 2021-07-21 13:32:18 +02:00 committed by Tomasz Zawadzki
parent 970e369fcf
commit e4d23dc757

View File

@ -584,6 +584,22 @@ function check_json_rpc() {
return $rc
}
function check_markdown_format() {
local rc=0
echo -n "Checking markdown files format..."
mdl -s $rootdir/mdl_rules.rb . > mdl.log || true
if [ -s mdl.log ]; then
echo " Errors in .md files detected:"
cat mdl.log
rc=1
else
echo " OK"
fi
rm -f mdl.log
return $rc
}
rc=0
check_permissions || rc=1
@ -598,6 +614,7 @@ if version_lt "1.9.5" "${GIT_VERSION}"; then
fi
check_comment_style || rc=1
check_markdown_format || rc=1
check_spaces_before_tabs || rc=1
check_trailing_whitespace || rc=1
check_forbidden_functions || rc=1