Scroll to navigation

PUPPET-LINT(1) User Commands PUPPET-LINT(1)

NAME

puppet-lint - Puppet Lint

DESCRIPTION

puppet-lint
Basic Command Line Usage:
puppet-lint [OPTIONS] PATH
The path to the Puppet manifest.
Option:
Display the current version.
Do not load default puppet-lint option files.
Load puppet-lint options from file.
Show where in the manifest the problem is.
Display the filename before the warning.
Return a non-zero exit status for warnings
The level of error to return (warning, error or all).
Show problems that have been ignored by control comments
Compare module layout relative to the module root
Load a file containing custom puppet-lint checks.
Load plugins from the given Puppet module path.
Attempt to automatically fix errors
Change the log format. Overrides --with-filename. The following placeholders can be used: %{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.
Log output as JSON
Log output as SARIF
Save a code climate compatible report to this file
List available check names.
Checks:
A comma separated list of checks that should be run
A comma separated list of patterns to ignore
Skip the arrow_on_right_operand_line check.

--no-autoloader_layout-check Skip the autoloader_layout check.

Skip the 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.

Enable the code_on_top_scope check.
Skip the inherits_across_namespaces check.
Skip the names_containing_dash check.
Skip the names_containing_uppercase check.
Skip the nested_classes_or_defines check.
Skip the parameter_order check.
Skip the right_to_left_relationship check.
Skip the variable_scope check.
Skip the slash_comments check.
Skip the star_comments check.
Skip the case_without_default check.
Skip the selector_inside_resource check.
Skip the documentation check.
Skip the unquoted_node_name check.
Skip the duplicate_params check.
Skip the ensure_first_param check.
Skip the ensure_not_symlink_target check.
Skip the file_mode check.
Skip the unquoted_file_mode check.
Skip the unquoted_resource_title check.
Skip the double_quoted_strings check.
Skip the only_variable_string check.
Skip the puppet_url_without_modules check.
Skip the quoted_booleans check.
Enable the quoted_booleans check.
Skip the single_quote_string_with_variables check.
Skip the variables_not_enclosed check.
Skip the variable_contains_dash check.
Skip the variable_is_lowercase check.
Skip the 140chars check.
Skip the 2sp_soft_tabs check.
Skip the 80chars check.
--80chars-check
Enable the 80chars check.
Skip the arrow_alignment check.
Skip the hard_tabs check.
Skip the trailing_whitespace check.
Skip the legacy_facts check.
Skip the top_scope_facts check.
February 2024 puppet-lint 4.2.4