From: lhinds Date: Mon, 19 Jun 2017 10:30:47 +0000 (+0100) Subject: Ignore all lines that start with a comment X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=61155a3ccfdd6cabc78a0d0cf813a7ac0dd09f0e;p=releng-anteater.git 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 --- 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: + - ^# +