File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11CHECK_PUPPET_LINT =" enabled" # enabled, permissive or disabled (permissive runs but return code is ignored)
22USE_PUPPET_FUTURE_PARSER =" enabled" # enabled or disabled
3+ export PUPPET_LINT_OPTIONS =" " # puppet-lint options to use if no rc file is present. Defaults to "--no-80chars-check"
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ module_dir="$3"
1111syntax_errors=0
1212error_msg=" $( mktemp /tmp/error_msg_puppet-lint.XXXXX) "
1313
14+ opts=${PUPPET_LINT_OPTIONS:- " --no-80chars-check" }
15+
1416if [[ $module_dir ]]; then
1517 manifest_name=" ${manifest_path##* $module_dir } "
1618 error_msg_filter=" sed -e s|$module_dir ||"
@@ -30,7 +32,7 @@ if [[ -f $puppet_lint_rcfile ]]; then
3032 echo -e " $( tput setaf 6) Applying custom config from ${puppet_lint_rcfile} $( tput sgr0) "
3133 puppet_lint_cmd=" $puppet_lint_cmd --config $puppet_lint_rcfile "
3234else
33- puppet_lint_cmd=" $puppet_lint_cmd --no-80chars-check "
35+ puppet_lint_cmd=" $puppet_lint_cmd $opts "
3436fi
3537
3638# If a file named .puppet-lint.rc exists in the directory where the file is located
You can’t perform that action at this time.
0 commit comments