aboutsummaryrefslogtreecommitdiff
path: root/test/lint
diff options
context:
space:
mode:
authorwillcl-ark <will@256k1.dev>2024-07-02 21:16:03 +0100
committerwillcl-ark <will@256k1.dev>2024-07-03 09:46:15 +0100
commit4d942547a8155cca4fe2f68afccdb822a174ab1a (patch)
treef14781d7938322a7347534d5886a37422dc23d49 /test/lint
parent173ab0ccf2164dd8cd3d486559dffda0d4a1a813 (diff)
downloadbitcoin-4d942547a8155cca4fe2f68afccdb822a174ab1a.tar.xz
lint: ignore files ignored by git in mlc
Updating to MLC v0.18.0 includes a new feature which will ignore all files ignored by git: `--gitignore`. This helps avoid false-positives flagged by this linter in non-project files, such as a developer might expect to have in their directory (e.g. guix-builds, python venvs, etc.)
Diffstat (limited to 'test/lint')
-rw-r--r--test/lint/test_runner/src/main.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/lint/test_runner/src/main.rs b/test/lint/test_runner/src/main.rs
index 9c35898c1f..cb8f3031e2 100644
--- a/test/lint/test_runner/src/main.rs
+++ b/test/lint/test_runner/src/main.rs
@@ -410,6 +410,7 @@ fn lint_markdown() -> LintResult {
"--offline",
"--ignore-path",
md_ignore_path_str.as_str(),
+ "--gitignore",
"--root-dir",
".",
])