Ignore all lines that start with a comment 81/36181/1
authorlhinds <lhinds@redhat.com>
Mon, 19 Jun 2017 10:30:47 +0000 (11:30 +0100)
committerlhinds <lhinds@redhat.com>
Mon, 19 Jun 2017 10:30:47 +0000 (11:30 +0100)
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 <lhinds@redhat.com>
releng_exception.yaml
sandbox_exception.yaml
template_exception.yaml [new file with mode: 0644]

index d860ce7..aee6768 100644 (file)
@@ -9,6 +9,7 @@ binaries:
 file_audits:
   file_names: [nullvalue]
   file_contents:
+    - ^#
     - -s  set secret key
     - "PKG_MAP\\[wget\\]"
     - "\\[wget\\]=wget"
index 14f0e81..e41b04a 100644 (file)
@@ -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 (file)
index 0000000..e41b04a
--- /dev/null
@@ -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:
+    - ^#
+