From 61155a3ccfdd6cabc78a0d0cf813a7ac0dd09f0e Mon Sep 17 00:00:00 2001 From: lhinds Date: Mon, 19 Jun 2017 11:30:47 +0100 Subject: [PATCH] Ignore all lines that start with a comment Adds regexp to existing exception files, so that all files that have commented lines are ignored. Also added a template_exception file with comments added as default JIRA:RELENG-239 Change-Id: I0de9bf91170e6614f3e1ee9bd1d486ca1eaf830b Signed-off-by: lhinds --- releng_exception.yaml | 1 + sandbox_exception.yaml | 4 +++- template_exception.yaml | 13 +++++++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 template_exception.yaml diff --git a/releng_exception.yaml b/releng_exception.yaml index d860ce7..aee6768 100644 --- a/releng_exception.yaml +++ b/releng_exception.yaml @@ -9,6 +9,7 @@ binaries: file_audits: file_names: [nullvalue] file_contents: + - ^# - -s set secret key - "PKG_MAP\\[wget\\]" - "\\[wget\\]=wget" diff --git a/sandbox_exception.yaml b/sandbox_exception.yaml index 14f0e81..e41b04a 100644 --- a/sandbox_exception.yaml +++ b/sandbox_exception.yaml @@ -8,4 +8,6 @@ binaries: binary_ignore: [nullvalue] file_audits: file_names: [nullvalue] - file_contents: [nullvalue] + file_contents: + - ^# + diff --git a/template_exception.yaml b/template_exception.yaml new file mode 100644 index 0000000..e41b04a --- /dev/null +++ b/template_exception.yaml @@ -0,0 +1,13 @@ +# When adding projects all `arrays: []` sections must have +# a value, Use 'nullvalue' if no waivers are available. +# +# This file uses standard regular expression syntax, however be mindful +# of escaping YAML delimiters too (such as `:`) using double quotes "". + +binaries: + binary_ignore: [nullvalue] +file_audits: + file_names: [nullvalue] + file_contents: + - ^# + -- 2.16.6