Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pkgcheck_arch-0.1.5.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pkgcheck_arch-0.1.5-py3-none-any.whl (26.8 kB view details)

Uploaded Python 3

File details

Details for the file pkgcheck_arch-0.1.5.tar.gz.

File metadata

  • Download URL: pkgcheck_arch-0.1.5.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pkgcheck_arch-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f1b3a2a2d0ca26b697c81a531e48ead8ff00ac72f4e574b0b502a9607a6f30e2
MD5 bec4514c171e12af8146e932f74d5925
BLAKE2b-256 133c37d4cf1c8f523606b02f9719e1f62c202a92bdd587155f7bd5b7c1c4b110

See more details on using hashes here.

File details

Details for the file pkgcheck_arch-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: pkgcheck_arch-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 26.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for pkgcheck_arch-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 b2366630b13b531771fbbf5fe43682becf56f563158dc6db18e4481e794735c1
MD5 e52bb912e05994afc7af3b1c0249e1c3
BLAKE2b-256 eedb2fad0def608f8ddef7a65943bed9c5a4d44dc0c04d21ad64b6c36c9d7126

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page