stank

stank: analyzers for determining whether files smell like rotten POSIX shell scripts, or faintly rosy like Ruby and Python scripts

OTHER License

Stars
52

Bot releases are hidden (Show)

stank - defunked

Published by mcandre about 7 years ago

  • Fix funk exit status
  • Handle .envrc scripts
stank - funky fresh

Published by mcandre about 7 years ago

  • Add funk linter for warning on script oddities
  • Add -sh flag to stank to restrict results to specifically pure sh scripts
  • Fix exit status of rosy
  • Handle #!/bin/busybox ... shebangs, similar to #!/usr/bin/env ...
  • Include file permissions metadata
stank - onward and upward

Published by mcandre about 7 years ago

  • Better interpreter extraction
  • Recognize that lksh scripts are not POSIX
stank - bug hunt edition

Published by mcandre about 7 years ago

  • Elide errors about reading to the end of short files
  • Short-circuit polyglot shebang scripts earlier for more accurate reporting
  • Skip (malformed) git hook shell script templates
  • Simplify recursive walk logic
stank - Handle more polyglot shebangs

Published by mcandre about 7 years ago

The stank library, and stink, stank, and rosy command line applications, will each now correctly report POSIXy: false when encountering multiilne, polyglot shebang hacks in files with proper extensions. Common Lisp files should end with ".lisp". Other languages that feature such profane abuses as workarounds for failing to adopt the standard #!... shebang comment syntax may be added later, based on contributor interest, pull request cleanliness, and cash bribe.

The entire stank system will continue to report POSIXY: true when encountering sufficiently ill-crafted multiline shebang hacks in files that omit any extension, or present a heretofore uncatalogued extension, because this edge case represents more than a few standard deviations away from sanity, and more effs than we can g.

As before, the release archive includes ports of the stink, stank, and rosy applications for macOS, Windows, Linux, and other targets that gox and friends conveniently support.

stank - BOM defusal

Published by mcandre about 7 years ago

Fix Byte Order Mark detection, so that UTF-8, UTF-16, UTF-32, and other encodings are properly handled.

stank - rosy

Published by mcandre about 7 years ago

Add rosy application for erroring whenever a POSIX script is detected.

stank - #works

Published by mcandre about 7 years ago

Ports of stink and stank command line applications built for a variety of platforms all bundled up in one smelly tin!