Rules.hs to find the implementation of the rules. Rules with the prefix DL are from hadolint. Or into your editor, or as a pre-commit hook, to lint your Dockerfile as youĪn incomplete list of implemented rules. To get most of hadolint, it is useful to integrate it as a check in your CI Uses, so that Hadolint can automatically ignore all shell-specific rules. Images) a special pragma hadolint shell can specify which shell the base image When using base images with non-posix shells as default (e.g. HADOLINT_REQUIRE_LABELS=maintainer:text # comma separated list of label schema items Non-Posix Shells HADOLINT_TRUSTED_REGISTRIES=docker.io # comma separated list of registry urls ![]() HADOLINT_DISABLE_IGNORE_PRAGMA=1 # Truthy value e.g. HADOLINT_STRICT_LABELS=1 # Truthy value e.g. HADOLINT_IGNORE=D元010,D元020 # comma separated list of rule codes HADOLINT_OVERRIDE_STYLE=D元010,D元020 # comma separated list of rule codes HADOLINT_OVERRIDE_INFO=D元010,D元020 # comma separated list of rule codes HADOLINT_OVERRIDE_WARNING=D元010,D元020 # comma separated list of rule codes HADOLINT_OVERRIDE_ERROR=D元010,D元020 # comma separated list of rule codes HADOLINT_FAILURE_THRESHOLD=info # threshold level (error | warning | info | style | ignore | none) HADOLINT_FORMAT=json # Output format (tty | json | checkstyle | codeclimate | gitlab_codeclimate | gnu | codacy | sarif ) The configuration file should be in yaml format. Hadolint supports specifying the ignored rules using a configurationįile. Config files can have either yaml or yml extensions.įailure-threshold: string # name of threshold level (error | warning | info | style | ignore | none) format: string # Output format (tty | json | checkstyle | codeclimate | gitlab_codeclimate | gnu | codacy) ignored: # list of rules label-schema: # See Linting Labels below for specific label-schema details author: string # Your name contact: string # email address created: timestamp # rfc3339 datetime version: string # semver documentation: string # url git-revision: string # hash license: string # spdx no-color: boolean # true | false no-fail: boolean # true | false override:Įrror: # list of rules warning: # list of rules info: # list of rules style: # list of rules strict-labels: boolean # true | false disable-ignore-pragma: boolean # true | false trustedRegistries: string | # registry or list of registries In windows, the %LOCALAPPDATA% environment variable is used instead of
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |