hadolint-1.17.3: Dockerfile Linter JavaScript API

Safe HaskellNone
LanguageHaskell2010

Hadolint.Shell

Documentation

data CmdPart Source #

Constructors

CmdPart 

Fields

Instances
Show CmdPart Source # 
Instance details

Defined in Hadolint.Shell

Methods

showsPrec :: Int -> CmdPart -> ShowS

show :: CmdPart -> String

showList :: [CmdPart] -> ShowS

data Command Source #

Constructors

Command 

Fields

Instances
Show Command Source # 
Instance details

Defined in Hadolint.Shell

Methods

showsPrec :: Int -> Command -> ShowS

show :: Command -> String

showList :: [Command] -> ShowS

data ParsedShell Source #

Constructors

ParsedShell 

Fields

data ShellOpts Source #

Constructors

ShellOpts 

Fields

shellcheck :: ShellOpts -> ParsedShell -> [PositionedComment] Source #

findCommandsInResult :: ParseResult -> [Token] Source #

extractTokensWith :: forall a. (Token -> Maybe a) -> ParseResult -> [a] Source #

allCommands :: (Command -> Bool) -> ParsedShell -> Bool Source #

noCommands :: (Command -> Bool) -> ParsedShell -> Bool Source #

cmdHasArgs :: Text -> [Text] -> Command -> Bool Source #

cmdHasPrefixArg :: Text -> Text -> Command -> Bool Source #

getArgs :: Command -> [Text] Source #

hasFlag :: Text -> Command -> Bool Source #

hasAnyFlag :: [Text] -> Command -> Bool Source #

hasArg :: Text -> Command -> Bool Source #