mirror of
https://github.com/docker/docs.git
synced 2026-03-27 14:28:47 +07:00
fix: broken glob path for lint job
Linting was only running on a subset of our Markdown files in `content`. This change fixes the glob path, and adds appropriate exclude paths. Because the glob pattern was incorrect before, we had lots of files that didn't comply with the linting rules. This commit also fixes those issues. Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
This commit is contained in:
@@ -35,7 +35,10 @@ COPY --from=build /out /
|
||||
FROM davidanson/markdownlint-cli2:v0.10.0 as lint
|
||||
USER root
|
||||
RUN --mount=type=bind,target=. \
|
||||
/usr/local/bin/markdownlint-cli2 content/**/*.md
|
||||
/usr/local/bin/markdownlint-cli2 \
|
||||
"content/**/*.md" \
|
||||
"#content/engine/release-notes/*.md" \
|
||||
"#content/desktop/previous-versions/*.md"
|
||||
|
||||
FROM wjdp/htmltest:v${HTMLTEST_VERSION} as test
|
||||
WORKDIR /test
|
||||
|
||||
Reference in New Issue
Block a user