A bashate fork for Arch Linux's PKGBUILDs
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pkgcheck_arch-0.1.3.tar.gz
.
File metadata
- Download URL: pkgcheck_arch-0.1.3.tar.gz
- Upload date:
- Size: 33.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f2ff88c65fb594bbba76ca9d017bf697b1dbfdfc23eb707ed4df1da3d83e701 |
|
MD5 | 57e03a202b3d16bc03db675d9af74ba9 |
|
BLAKE2b-256 | 67db7156c9ce7d5969ce6b460dfe4cc1b5cb431f0458486bf797bbb489168902 |
Provenance
File details
Details for the file pkgcheck_arch-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pkgcheck_arch-0.1.3-py3-none-any.whl
- Upload date:
- Size: 26.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a781e3f9e56effe3f8e84ff8067811e41fd5b48aaa31f38224ae086130ffc3cc |
|
MD5 | 84fead6c52e21135485123c93b6f5ec9 |
|
BLAKE2b-256 | 9cb52a2d7efd1713f37566795ec8ff3fde8905d8047b349a6ca238acaa0274fa |