Skip to content
Snippets Groups Projects
Commit bacc9f3b authored by Patrycja Rosa's avatar Patrycja Rosa :cat: Committed by Patrycja Rosa
Browse files

CODINGSTYLE.md: forbid quoting pkgname/pkgver

already enforced by apkbuild-lint (AL3,AL4) + "below" doesn't say much about quoting
parent a7e1763c
No related branches found
No related tags found
No related merge requests found
...@@ -67,7 +67,7 @@ Put `; do` and `; then` on the same line as the `while`, `for` or `if`. ...@@ -67,7 +67,7 @@ Put `; do` and `; then` on the same line as the `while`, `for` or `if`.
### Quoting ### Quoting
* Always quote string literals (exceptions are assigning `pkgname` and * Always quote string literals (exceptions are assigning `pkgname` and
`pkgver`, more on this below). `pkgver`, which must not be quoted).
* Always quote variables, command substitutions or shell meta characters * Always quote variables, command substitutions or shell meta characters
when used in strings. Prefer `"$var"/foo/bar` over `"$var/foo/bar"`. when used in strings. Prefer `"$var"/foo/bar` over `"$var/foo/bar"`.
* Never quote literal integers. * Never quote literal integers.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment