PUPPET-LINT(1)

πŸ“¦
version 4.3.0 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

✨ NAME ✨

puppet-lint β€” ok bestie, this is the manual page for it, it's PUPPET-LINT(1), and it is genuinely so good at telling you what's wrong with your Puppet manifests πŸ’…


πŸ’– DESCRIPTION πŸ’–

puppet-lint πŸ¦‹

Basic Command Line Usage, aka the whole vibe in one line:

puppet-lint [OPTIONS] PATH
  • PATH β€” The path to the Puppet manifest. like, the actual file you want checked, periodt.

🌸 Option 🌸

ok so here's every single flag, no skipping, we don't gatekeep πŸ’œ

  • --version β€” Display the current version. slay, now you know what you're running.
  • --no-config β€” Do not load default puppet-lint option files. not me ignoring the config on purpose πŸ™ˆ
  • -c, --config FILE β€” Load puppet-lint options from file.
  • --with-context β€” Show where in the manifest the problem is.
  • --with-filename β€” Display the filename before the warning.
  • --fail-on-warnings β€” Return a non-zero exit status for warnings
  • --error-level LEVEL β€” The level of error to return (warning, error or all).
  • --show-ignored β€” Show problems that have been ignored by control comments
  • --relative β€” Compare module layout relative to the module root
  • -l, --load FILE β€” Load a file containing custom puppet-lint checks.
  • --load-from-puppet MODULEPATH β€” Load plugins from the given Puppet module path.
  • -f, --fix β€” Attempt to automatically fix errors πŸ”₯
  • --log-format FORMAT β€” Change the log format. Overrides --with-filename. The following placeholders can be used, memorize these bestie, they're iconic:
    • %{filename} β€” Filename without path.
    • %{path} β€” Path as provided to puppet-lint.
    • %{fullpath} β€” Expanded path to the file.
    • %{line} β€” Line number.
    • %{column} β€” Column number.
    • %{kind} β€” The kind of message (warning, error).
    • %{KIND} β€” Uppercase version of %{kind}.
    • %{check} β€” The name of the check.
    • %{message} β€” The message.
  • --json β€” Log output as JSON
  • --sarif β€” Log output as SARIF
  • --codeclimate-report-file FILE β€” Save a code climate compatible report to this file
  • --list-checks β€” List available check names. go off, see what's out there πŸ‘‘

πŸŽ€ Checks πŸŽ€

the checks section, aka the main character energy of this whole page ⭐ every check can be skipped with its --no-...-check flag, and a few of them can also be turned back on with the non-no- version. iykyk.

  • --only-checks CHECKS β€” A comma separated list of checks that should be run
  • --ignore-paths PATHS β€” A comma separated list of patterns to ignore
  • --top-scope-variables VARS β€” A comma separated list of allowed top scope variables
  • --no-arrow_on_right_operand_line-check β€” Skip the arrow_on_right_operand_line check.
  • --no-autoloader_layout-check β€” Skip the autoloader_layout check.
  • --no-class_inherits_from_params_class-check β€” Skip the class_inherits_from_params_class check.
  • --class_inherits_from_params_class-check β€” Enable the class_inherits_from_params_class check.
  • --no-code_on_top_scope-check β€” Skip the code_on_top_scope check.
  • --code_on_top_scope-check β€” Enable the code_on_top_scope check.
  • --no-inherits_across_namespaces-check β€” Skip the inherits_across_namespaces check.
  • --no-names_containing_dash-check β€” Skip the names_containing_dash check.
  • --no-names_containing_uppercase-check β€” Skip the names_containing_uppercase check.
  • --no-nested_classes_or_defines-check β€” Skip the nested_classes_or_defines check.
  • --no-parameter_order-check β€” Skip the parameter_order check.
  • --no-right_to_left_relationship-check β€” Skip the right_to_left_relationship check.
  • --no-variable_scope-check β€” Skip the variable_scope check.
  • --no-slash_comments-check β€” Skip the slash_comments check.
  • --no-star_comments-check β€” Skip the star_comments check.
  • --no-case_without_default-check β€” Skip the case_without_default check.
  • --no-selector_inside_resource-check β€” Skip the selector_inside_resource check.
  • --no-documentation-check β€” Skip the documentation check.
  • --no-unquoted_node_name-check β€” Skip the unquoted_node_name check.
  • --no-duplicate_params-check β€” Skip the duplicate_params check.
  • --no-ensure_first_param-check β€” Skip the ensure_first_param check.
  • --no-ensure_not_symlink_target-check β€” Skip the ensure_not_symlink_target check.
  • --no-file_mode-check β€” Skip the file_mode check.
  • --no-unquoted_file_mode-check β€” Skip the unquoted_file_mode check.
  • --no-unquoted_resource_title-check β€” Skip the unquoted_resource_title check.
  • --no-double_quoted_strings-check β€” Skip the double_quoted_strings check.
  • --no-only_variable_string-check β€” Skip the only_variable_string check.
  • --no-puppet_url_without_modules-check β€” Skip the puppet_url_without_modules check.
  • --no-quoted_booleans-check β€” Skip the quoted_booleans check.
  • --quoted_booleans-check β€” Enable the quoted_booleans check.
  • --no-single_quote_string_with_variables-check β€” Skip the single_quote_string_with_variables check.
  • --no-variables_not_enclosed-check β€” Skip the variables_not_enclosed check.
  • --no-variable_contains_dash-check β€” Skip the variable_contains_dash check.
  • --no-variable_is_lowercase-check β€” Skip the variable_is_lowercase check.
  • --no-140chars-check β€” Skip the 140chars check.
  • --no-2sp_soft_tabs-check β€” Skip the 2sp_soft_tabs check.
  • --no-80chars-check β€” Skip the 80chars check.
  • --80chars-check β€” Enable the 80chars check.
  • --no-arrow_alignment-check β€” Skip the arrow_alignment check.
  • --no-hard_tabs-check β€” Skip the hard_tabs check.
  • --no-space_before_arrow-check β€” Skip the space_before_arrow check.
  • --no-trailing_whitespace-check β€” Skip the trailing_whitespace check.
  • --no-legacy_facts-check β€” Skip the legacy_facts check.
  • --no-top_scope_facts-check β€” Skip the top_scope_facts check.

ok that's the whole thing, you ate it up, no crumbs left πŸ’–

this was puppet-lint version 4.3.0, from March 2025, and yeah it's the PUPPET-LINT(1) manual page πŸŽ€ bye bestie, go lint something pretty πŸ¦‹βœ¨

πŸ“¦ where this page comes from