From 0232a4d788e621f8a0793a62ea6aff4fdb638fe6 Mon Sep 17 00:00:00 2001 From: jakub-nt <175944085+jakub-nt@users.noreply.github.com> Date: Wed, 7 May 2025 18:38:31 +0200 Subject: [PATCH] `cfbs analyze` now ignores generated files controlling CFEngine policy updates Signed-off-by: jakub-nt <175944085+jakub-nt@users.noreply.github.com> --- cfbs/analyze.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cfbs/analyze.py b/cfbs/analyze.py index 08aa6b6e..73a28c1c 100644 --- a/cfbs/analyze.py +++ b/cfbs/analyze.py @@ -472,7 +472,17 @@ def to_json_dict(self): return json_dict -DEFAULT_IGNORED_PATH_COMPONENTS = [".git/", ".gitignore", ".gitattributes", ".github/"] +DEFAULT_IGNORED_PATH_COMPONENTS = [ + # VCS files - Git: + ".git/", + ".gitignore", + ".gitattributes", + # infrastructure configuration files - GitHub: + ".github/", + # CFEngine policy distribution generated files: + "cf_promises_release_id", + "cf_promises_validated", +] def analyze_policyset(