Skip to main content

A pep8 equivalent for bash scripts

Project description

This is a bashate fork for Arch Linux’s PKGBUILDs.

  • Free software: Apache license

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.0.tar.gz (30.5 kB view details)

Uploaded Source

File details

Details for the file pkgcheck-arch-0.1.0.tar.gz.

File metadata

  • Download URL: pkgcheck-arch-0.1.0.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.7.0

File hashes

Hashes for pkgcheck-arch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0f6dac221371ea0e12b924032991a2da8f1498542c52e2bee85c30bb9dc13462
MD5 8c580064baaf49fd8142005e853b434b
BLAKE2b-256 1c05a84d01a6f6fb04e9d658b9b5419ab3f6585b39530e31bb9892d47d276a9c

See more details on using hashes here.

Provenance

Supported by

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