Skip to content

Commit

Permalink
Fixup YAML utils comment (#4226)
Browse files Browse the repository at this point in the history
  • Loading branch information
kousu authored Jun 21, 2024
1 parent 47b10b2 commit 7e9f77a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ansiblelint/yaml_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ def choose_scalar_style(self) -> Any:
):
# We have an as-yet unquoted token that starts with "0" (but is not itself the digit 0).
# It could be:
# - hexadecimal like "0xF1" or ; comes tagged as int. Should continue unquoted to continue as an int.
# - hexadecimal like "0xF1"; comes tagged as int. Should continue unquoted to continue as an int.
# - octal like "0666" or "0o755"; comes tagged as str. **Should** be quoted to be cross-YAML compatible.
# - string like "0.0.0.0" and "00-header". Should not be quoted, unless it has a quote in it.
if (
Expand Down

0 comments on commit 7e9f77a

Please sign in to comment.