From 6b7106015f5c6e03f630ec5b0ad95583a1974b90 Mon Sep 17 00:00:00 2001 From: William Yardley Date: Mon, 20 May 2024 17:16:58 -0700 Subject: [PATCH] Use lint rake task for lint pre-commit check --- moduleroot/.overcommit.yml.erb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/moduleroot/.overcommit.yml.erb b/moduleroot/.overcommit.yml.erb index d367adae..4ed994cc 100644 --- a/moduleroot/.overcommit.yml.erb +++ b/moduleroot/.overcommit.yml.erb @@ -43,10 +43,12 @@ PreCommit: enabled: true description: 'Runs rubocop on modified files only' command: ['bundle', 'exec', 'rubocop'] - PuppetLint: + RakeTarget: enabled: true - description: 'Runs puppet-lint on modified files only' - command: ['bundle', 'exec', 'puppet-lint'] + description: 'Runs lint on modified files only' + targets: + - 'lint' + command: ['bundle', 'exec', 'rake'] YamlSyntax: enabled: true JsonSyntax: