Use this rule to prevent values with octal numbers. In YAML, numbers that start with {@code 0} are interpreted as
octal, but this is not always wanted. For instance 010 is the city code of Beijing, and should not be
converted to 8.
Examples
With forbid-implicit-octal = true
the following code snippets would PASS:
user:
city-code: '010'
user:
city-code: 010,021
the following code snippet would FAIL:
user:
city-code: 010
With forbid-explicit-octal = true
the following code snippet would PASS:
user:
city-code: '0o10'
the following code snippet would FAIL:
user:
city-code: 0o10