puppet-lint1
Puppet lint
Overview
-
puppet-lint
-
Basic Command Line Usage:
-
puppet-lint [OPTIONS] PATH
- PATH
-
The path to the Puppet manifest.
-
Option:
-
--version -
Display the current version.
-
--no-config -
Do not load default puppet-lint option files.
-
-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: %{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.
-
Checks:
-
--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.
History
- Debian 13 (Trixie): the text shown here
- Debian 12 (Bookworm) to Debian 7 (Wheezy)
--80chars-check since Debian 13 (Trixie);
--class_inherits_from_params_class-check since Debian 13 (Trixie);
--code_on_top_scope-check since Debian 13 (Trixie);
--codeclimate-report-file since Debian 13 (Trixie);
--config since Debian 13 (Trixie);
--error-level since Debian 13 (Trixie);
--fail-on-warnings since Debian 13 (Trixie);
--fix since Debian 13 (Trixie);
--ignore-paths since Debian 13 (Trixie);
--json since Debian 13 (Trixie);
--list-checks since Debian 13 (Trixie);
--load since Debian 13 (Trixie);
--load-from-puppet since Debian 13 (Trixie);
--log-format since Debian 13 (Trixie);
--no-140chars-check since Debian 13 (Trixie);
--no-2sp_soft_tabs-check since Debian 13 (Trixie);
--no-80chars-check since Debian 13 (Trixie);
--no-arrow_alignment-check since Debian 13 (Trixie);
--no-arrow_on_right_operand_line-check since Debian 13 (Trixie);
--no-case_without_default-check since Debian 13 (Trixie);
--no-class_inherits_from_params_class-check since Debian 13 (Trixie);
--no-config since Debian 13 (Trixie);
--no-documentation-check since Debian 13 (Trixie);
--no-double_quoted_strings-check since Debian 13 (Trixie);
--no-duplicate_params-check since Debian 13 (Trixie);
--no-ensure_first_param-check since Debian 13 (Trixie);
--no-ensure_not_symlink_target-check since Debian 13 (Trixie);
--no-file_mode-check since Debian 13 (Trixie);
--no-hard_tabs-check since Debian 13 (Trixie);
--no-inherits_across_namespaces-check since Debian 13 (Trixie);
--no-legacy_facts-check since Debian 13 (Trixie);
--no-names_containing_dash-check since Debian 13 (Trixie);
--no-names_containing_uppercase-check since Debian 13 (Trixie);
--no-nested_classes_or_defines-check since Debian 13 (Trixie);
--no-only_variable_string-check since Debian 13 (Trixie);
--no-parameter_order-check since Debian 13 (Trixie);
--no-puppet_url_without_modules-check since Debian 13 (Trixie);
--no-quoted_booleans-check since Debian 13 (Trixie);
--no-right_to_left_relationship-check since Debian 13 (Trixie);
--no-selector_inside_resource-check since Debian 13 (Trixie);
--no-single_quote_string_with_variables-check since Debian 13 (Trixie);
--no-slash_comments-check since Debian 13 (Trixie);
--no-space_before_arrow-check since Debian 13 (Trixie);
--no-star_comments-check since Debian 13 (Trixie);
--no-top_scope_facts-check since Debian 13 (Trixie);
--no-trailing_whitespace-check since Debian 13 (Trixie);
--no-unquoted_file_mode-check since Debian 13 (Trixie);
--no-unquoted_node_name-check since Debian 13 (Trixie);
--no-unquoted_resource_title-check since Debian 13 (Trixie);
--no-variable_contains_dash-check since Debian 13 (Trixie);
--no-variable_is_lowercase-check since Debian 13 (Trixie);
--no-variable_scope-check since Debian 13 (Trixie);
--no-variables_not_enclosed-check since Debian 13 (Trixie);
--only-checks since Debian 13 (Trixie);
--quoted_booleans-check since Debian 13 (Trixie);
--relative since Debian 13 (Trixie);
--sarif since Debian 13 (Trixie);
--show-ignored since Debian 13 (Trixie);
--top-scope-variables since Debian 13 (Trixie);
--with-context since Debian 13 (Trixie);
--with-filename since Debian 13 (Trixie);
-c since Debian 13 (Trixie);
-f since Debian 13 (Trixie);
-l since Debian 13 (Trixie).