From 0008d693be3a7feaf13f9789bdc3579575e91672 Mon Sep 17 00:00:00 2001
From: Chris Croome <chris@webarchitects.co.uk>
Date: Sun, 31 Dec 2023 14:12:13 +0000
Subject: [PATCH] j2lint updates

---
 .pre-commit-config.yaml | 2 +-
 templates/php.j2        | 1 +
 templates/php.pref.j2   | 1 +
 3 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 861b4a2..cd92611 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -36,7 +36,7 @@ repos:
       - id: j2lint
         name: Jinja2-Linter
         args:
-          - templates/*.j2
+          - templates
   # https://github.com/jackdewinter/pymarkdown/releases
   - repo: https://github.com/jackdewinter/pymarkdown.git
     rev: v0.9.15
diff --git a/templates/php.j2 b/templates/php.j2
index d4ddb3a..4ed0359 100644
--- a/templates/php.j2
+++ b/templates/php.j2
@@ -1,4 +1,5 @@
 ; {{ ansible_managed }}
+; {# j2lint: disable=jinja-statements-indentation #}
 
 {% for php_section in php_conf_file_proposed_vars | dict2items %}
 [{{ php_section.key }}]
diff --git a/templates/php.pref.j2 b/templates/php.pref.j2
index 7037c4e..f008a71 100644
--- a/templates/php.pref.j2
+++ b/templates/php.pref.j2
@@ -1,4 +1,5 @@
 # {{ ansible_managed }}
+# {# j2lint: disable=jinja-statements-indentation #}
 
 {% if ansible_distribution_release == "bullseye" %}
 {% for pkg in php_debian_bullseye_pkg %}
-- 
GitLab