Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,36 @@ jobs:
echo ""
done < <(find . -name "Dockerfile")
exit $total_exit_code
- name: Remark
run: |
yarn add remark-cli \
remark-lint-mdash-style \
https://github.com/typeable/remark-validate-links#anchors \
remark-preset-lint-recommended \
remark-lint-no-dead-urls

total_exit_code=0
while IFS= read -r file; do
yarn run remark -f \
-u validate-links \
-u remark-lint-mdash-style \
-u remark-lint-final-newline \
-u remark-lint-list-item-bullet-indent \
-u remark-lint-no-blockquote-without-marker \
-u remark-lint-ordered-list-marker-style \
-u remark-lint-no-literal-urls \
-u remark-lint-hard-break-spaces \
-u remark-lint-no-duplicate-definitions \
-u remark-lint-no-heading-content-indent \
-u remark-lint-no-inline-padding \
-u remark-lint-no-shortcut-reference-image \
-u remark-lint-no-shortcut-reference-link \
-u remark-lint-no-undefined-references \
-u remark-lint-no-unused-definitions \
-u remark-lint-no-dead-urls \
$file || total_exit_code=$?
done < <(find . -name "*.md" -not -path "*/node_modules/*" -not -path "./.github/*")
exit $total_exit_code
- name: Cargo clippy
run: |
SKIP_WASM_BUILD=1 cargo clippy -- -D warnings
Expand Down