mkifs fails late: a typo in a QNX buildfile is usually discovered only when the image build breaks — or worse, when the target does not boot. qnx-buildfile-lint catches the mistake on the host, before mkifs ever runs, with the exact line, a rule code, and a fix hint. It also inspects built .ifs images the way dumpifs does — startup header, image header, directory entries, and both trailer checksums — so a corrupt or truncated image is caught before it is flashed.

The linter understands the real mkifs grammar: attribute blocks, sticky attributes, target=host mappings, inline files, ?-conditional attributes and ${VARIABLE} expansion. It validates all QNX 8.0 attributes, checks the boot sequence (bootstrap first, startup-* … procnto), parses startup scripts as procnto does, and cross-checks that every command the script starts is actually in the image. With --check-host it also verifies host files exist and match their sha256/sha512/cksum hashes.

79 rules (QNX100–QNX510), text and JSON output, --strict for CI, exit codes 0/1/2. Python 3, standard library only, no dependencies. 87 tests pass. Includes a 20-minute codelab: write a Raspberry Pi 4 buildfile, lint it, fix each finding, inspect the resulting image — no QNX installation needed.

Built With

Share this project:

Updates

Submission history