From 2092254ce3c23d33201491cbbc0633dae44ba1b0 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Wed, 12 Jul 2023 08:43:06 +0200 Subject: [PATCH] docs: matchFileNames negative match --- docs/usage/configuration-options.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/usage/configuration-options.md b/docs/usage/configuration-options.md index 29fefd3250..58d658bf12 100644 --- a/docs/usage/configuration-options.md +++ b/docs/usage/configuration-options.md @@ -2219,7 +2219,7 @@ Use the syntax `!/ /` like this: ### matchFileNames -Renovate will compare `matchFileNames` glob matching against the dependency's package file or lock file. +Renovate will compare `matchFileNames` glob matching against the dependency's package file and also lock file if one exists. The following example matches `package.json` but _not_ `package/frontend/package.json`: @@ -2262,6 +2262,8 @@ The following example matches any file in directories starting with `app/`: } ``` +It is recommended that you avoid using "negative" globs, like `**/!(package.json)`, because such patterns might still return true if they match against the lock file name (e.g. `package-lock.json`). + ### matchDepNames ### matchDepPatterns -- GitLab