hadolint-1.6.0: Dockerfile Linter JavaScript API

Safe HaskellNone
LanguageHaskell2010

Hadolint.Rules

Synopsis

Documentation

data Metadata Source #

Constructors

Metadata 

Instances

mapInstructions :: Metadata -> (state -> Linenumber -> Instruction -> (state, Bool)) -> state -> Rule Source #

instructionRuleState :: String -> Severity -> String -> (state -> Linenumber -> Instruction -> (state, Bool)) -> state -> Rule Source #

dockerfileRule Source #

Arguments

:: String

The rule code name

-> Severity

The rule severity

-> String

The error message associated with the rule

-> ([Instruction] -> Bool)

The function that will check the rule

-> Rule 

previouslyDefinedAliases :: Linenumber -> Dockerfile -> [String] Source #

Returns a list of all image aliases in FROM instructions that are defined before the given line number.

aliasMustBe :: (String -> Bool) -> Instruction -> Bool Source #

Returns the result of running the check function on the image alias name, if the passed instruction is a FROM instruction with a stage alias. Otherwise, returns True.

npmVersionPinned :: Rule Source #

Rule for pinning NPM packages to version, tag, or commit supported formats by Hadolint npm install (with no args, in package dir) npm install [@scope/]name npm install [@scope/]nametag npm install [<scope>/]name@version npm install git[+http|+https]:/git-hostgit-user/repo-name[semver:semver] npm install git+ssh:/git-host:git-userrepo-name[semver:semver]