mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
don't markdownlint ignored files
I like to put a bunch of untracked stuff in a /scratch directory for each project, and then puth /scratch in my global gitignore. There are usually some markdown notes files in here that I don't care about style for. The previous markdownlint invokation didn't respect the global gitignore, making local 'engage' runs kinda useless due to false positives from the scratch dir.
This commit is contained in:
parent
472f51c350
commit
4cc390345a
2 changed files with 7 additions and 1 deletions
|
|
@ -48,7 +48,11 @@ script = "lychee --offline ."
|
|||
[[task]]
|
||||
name = "markdownlint"
|
||||
group = "lints"
|
||||
script = "markdownlint ."
|
||||
# don't just use 'markdownlint .' because it will lint files that are ignored by
|
||||
# git
|
||||
script = """
|
||||
git ls-files --cached --others --exclude-standard '*.md' | xargs markdownlint
|
||||
"""
|
||||
|
||||
[[task]]
|
||||
name = "cargo-fmt"
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
{ cargo-insta
|
||||
, default
|
||||
, engage
|
||||
, findutils
|
||||
, inputs
|
||||
, jq
|
||||
, lychee
|
||||
|
|
@ -32,6 +33,7 @@ mkShell {
|
|||
# Keep sorted
|
||||
cargo-insta
|
||||
engage
|
||||
findutils
|
||||
jq
|
||||
lychee
|
||||
markdownlint-cli
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue