hadolint-1.8.0: Dockerfile Linter JavaScript API

Safe HaskellNone
LanguageHaskell2010

Hadolint.Rules

Synopsis

Documentation

data Metadata Source #

Constructors

Metadata 

Fields

Instances

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

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

withState :: a -> b -> (a, b) Source #

previouslyDefinedAliases :: Linenumber -> ParsedFile -> [Text] Source #

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

aliasMustBe :: (Text -> Bool) -> Instruction a -> 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]