10 lines
320 B
YAML
10 lines
320 B
YAML
extends: existence
|
|
message: "Put a nonbreaking space between the number and the unit in '%s'."
|
|
link: "https://developers.google.com/style/units-of-measure"
|
|
nonword: true
|
|
level: error
|
|
tokens:
|
|
- \b\d+(?:B|kB|MB|GB|TB)
|
|
# Match time units, but not duration literals inside code blocks.
|
|
- \b`(\n)?\d+(ns|ms|s|min|h|d)`\b
|