When linting a document with yamllint, a series of rules (such as line-length
, trailing-spaces
, etc.) are checked against.
A configuration file <configuration>
can be used to enable or disable these rules, to set their level (error or warning), but also to tweak their options.
This page describes the rules and their options.
List of rules
yamllint.rules.braces
yamllint.rules.brackets
yamllint.rules.colons
yamllint.rules.commas
yamllint.rules.comments
yamllint.rules.comments_indentation
yamllint.rules.document_end
yamllint.rules.document_start
yamllint.rules.empty_lines
yamllint.rules.hyphens
yamllint.rules.indentation
yamllint.rules.key_duplicates
yamllint.rules.line_length
yamllint.rules.new_line_at_end_of_file
yamllint.rules.new_lines
yamllint.rules.trailing_spaces