dib-lint provides a way to check for common errors in diskimage-builder
elements. To use it, simply run the dib-lint
script in a directory
containing an elements
directory. The checks will be run against
every file found under elements
.
The following is a list of what is currently caught by dib-lint:
Some of the checks can be omitted, either for an entire project or for an individual file. Project exclusions go in tox.ini, using the following section format:
[dib-lint]
ignore=sete setpipefail
This will cause the set -e and set -o pipefail checks to be ignored.
File-specific exclusions are specified as a comment in the relevant file, using the following format:
# dib-lint: disable=sete setpipefail
This will exclude the same tests, but only for the file in which the comment appears.
Only some of the checks can be disabled. The ones available for exclusion are:
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.