This is a bashate fork for Arch Linux’s PKGBUILDs.
Free software: Apache license
Install
pip install -u pkgcheck-arch
Use
pkgcheck path/to/PKGBUILD
Currently Supported Checks
Errors
Basic white space errors, for consistent indenting
E001: check that lines do not end with trailing whitespace
E002: ensure that indents are only spaces, and not hard tabs
E003: ensure all indents are a multiple of 4 spaces
E004: file did not end with a newline
E005: unquoted $srcdir or $pkgdir
Structure Errors
A set of rules that help keep things consistent in control blocks. These are ignored on long lines that have a continuation, because unrolling that is kind of “interesting”
E010: do not on the same line as for
E011: then not on the same line as if or elif
E012: heredoc didn’t end before EOF
E020: Function declaration not in format ^function name {$
Obsolete, deprecated or unsafe syntax
Rules to identify obsolete, deprecated or unsafe syntax that should not be used
E040: Syntax errors reported by bash -n
E041: Usage of $[ for arithmetic is deprecated for $((
W042: Local declaration hides errors
W043: Arithmetic compound has inconsistent return semantics
E044: Use [[ for =~,<,> comparisions
Style enforcer
E060: Last line isn’t a newline
E061: Multiple final newlines
W062: Unsafe quotes
Release files for pkgcheck-arch 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pkgcheck_arch-0.1.5.tar.gz | 33.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pkgcheck_arch-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 60.7 kB
Release files / pkgcheck_arch-0.1.5.tar.gz
| Download URL | pkgcheck_arch-0.1.5.tar.gz |
|---|---|
| Size | 33.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f1b3a2a2d0ca26b697c81a531e48ead8ff00ac72f4e574b0b502a9607a6f30e2
|
|
BLAKE2b-256 checksum How to use checksums |
133c37d4cf1c8f523606b02f9719e1f62c202a92bdd587155f7bd5b7c1c4b110
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / pkgcheck_arch-0.1.5-py3-none-any.whl
| Download URL | pkgcheck_arch-0.1.5-py3-none-any.whl |
|---|---|
| Size | 26.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b2366630b13b531771fbbf5fe43682becf56f563158dc6db18e4481e794735c1
|
|
BLAKE2b-256 checksum How to use checksums |
eedb2fad0def608f8ddef7a65943bed9c5a4d44dc0c04d21ad64b6c36c9d7126
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|