From c7bec38ab0b4b1ad1b7986aa943abc99e6b96975 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Fri, 5 Oct 2018 06:55:59 +0000 Subject: [PATCH] Bug 15734: Update missing filters test for json 0) Apply only the first patch of this bug report 1) Run qa tools on the first patch - should return missing filters on AUDIO_ALERTS line 2) Apply this patch 3) Run qa test tools on both patches - should be OK Signed-off-by: Kyle M Hall --- t/lib/QA/TemplateFilters.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/t/lib/QA/TemplateFilters.pm b/t/lib/QA/TemplateFilters.pm index 2aa94b7dfb..4f3eba8d44 100644 --- a/t/lib/QA/TemplateFilters.pm +++ b/t/lib/QA/TemplateFilters.pm @@ -75,6 +75,7 @@ sub missing_filters { && $tt_block !~ m{=} # assignment, maybe we should require to use SET (?) && $tt_block !~ m{\|\s?ur(l|i)} # already has url or uri filter && $tt_block !~ m{\|\s?html} # already has html filter + && $tt_block !~ m{\|\s?json} # already has json filter && $tt_block !~ m{^(?\S+)\s+UNLESS\s+(?\S+)} # Specific for [% foo UNLESS bar %] ; } -- 2.17.1 (Apple Git-112)