From ea1fb2e6584fb80bae51fbc8dafd710fb59a9244 Mon Sep 17 00:00:00 2001 From: buglloc Date: Sun, 21 May 2017 23:03:04 +0300 Subject: [PATCH] Show file paths in console/text templates only if we analyzed more then 1 config --- gixy/formatters/templates/console.j2 | 2 ++ gixy/formatters/templates/text.j2 | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gixy/formatters/templates/console.j2 b/gixy/formatters/templates/console.j2 index 27f381c..182d107 100644 --- a/gixy/formatters/templates/console.j2 +++ b/gixy/formatters/templates/console.j2 @@ -2,7 +2,9 @@ {{ colors.TITLE }}==================== Results ==================={{ colors.DEF }} {% for path, issues in reports.items() %} +{% if reports|length > 1 %} File path: {{ path }} +{% endif %} {% if not issues %} No issues found. diff --git a/gixy/formatters/templates/text.j2 b/gixy/formatters/templates/text.j2 index daf64eb..59b830d 100644 --- a/gixy/formatters/templates/text.j2 +++ b/gixy/formatters/templates/text.j2 @@ -1,7 +1,9 @@ ==================== Results =================== {% for path, issues in reports.items() %} +{% if reports|length > 1 %} File path: {{ path }} +{% endif %} {% if not issues %} No issues found.