From ab8f87864e2be88a9529eb68f346f6139f7443c1 Mon Sep 17 00:00:00 2001
From: Darko Poljak <foss@ungleich.com>
Date: Sun, 7 Oct 2018 19:09:14 +0200
Subject: [PATCH] Add shellcheck-ing for type explorers and auxiliary files.

---
 Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index e9cacced..9f81cf06 100644
--- a/Makefile
+++ b/Makefile
@@ -262,6 +262,9 @@ pep8:
 shellcheck-global-explorers:
 	@find cdist/conf/explorer -type f -exec $(SHELLCHECKCMD) {} + | $(SHELLCHECK_SKIP) || exit 0
 
+shellcheck-type-explorers:
+	@find cdist/conf/type -type f -path "*/explorer/*" -exec $(SHELLCHECKCMD) {} + | $(SHELLCHECK_SKIP) || exit 0
+
 shellcheck-manifests:
 	@find cdist/conf/type -type f -name manifest -exec $(SHELLCHECKCMD) {} + | $(SHELLCHECK_SKIP) || exit 0
 
@@ -273,6 +276,11 @@ shellcheck-remote-gencodes:
 
 shellcheck-gencodes: shellcheck-local-gencodes shellcheck-remote-gencodes
 
-shellcheck-types: shellcheck-manifests shellcheck-gencodes
+shellcheck-types: shellcheck-type-explorers shellcheck-manifests shellcheck-gencodes
 
 shellcheck: shellcheck-global-explorers shellcheck-types
+
+shellcheck-type-files:
+	@find cdist/conf/type -type f -path "*/files/*" -exec $(SHELLCHECKCMD) {} + | $(SHELLCHECK_SKIP) || exit 0
+
+shellcheck-with-files: shellcheck shellcheck-type-files