Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- lintIO :: LintOptions -> NonEmpty FilePath -> IO (NonEmpty (Result Text DockerfileError))
- lint :: LintOptions -> [(Text, Either Error Dockerfile)] -> [Result Text DockerfileError]
- analyze :: LintOptions -> Dockerfile -> Seq CheckFailure
- data LintOptions = LintOptions {
- errorRules :: [ErrorRule]
- warningRules :: [WarningRule]
- infoRules :: [InfoRule]
- styleRules :: [StyleRule]
- ignoreRules :: [IgnoreRule]
- rulesConfig :: RulesConfig
- failThreshold :: DLSeverity
- type ErrorRule = RuleCode
- type WarningRule = RuleCode
- type InfoRule = RuleCode
- type StyleRule = RuleCode
- type IgnoreRule = RuleCode
- type TrustedRegistry = Text
Documentation
lintIO :: LintOptions -> NonEmpty FilePath -> IO (NonEmpty (Result Text DockerfileError)) Source #
Performs the process of parsing the dockerfile and analyzing it with all the applicable rules, depending on the list of ignored rules.
lint :: LintOptions -> [(Text, Either Error Dockerfile)] -> [Result Text DockerfileError] Source #
analyze :: LintOptions -> Dockerfile -> Seq CheckFailure Source #
data LintOptions Source #
LintOptions | |
|
Instances
Show LintOptions Source # | |
Defined in Hadolint.Lint showsPrec :: Int -> LintOptions -> ShowS # show :: LintOptions -> String # showList :: [LintOptions] -> ShowS # | |
Semigroup LintOptions Source # | |
Defined in Hadolint.Lint (<>) :: LintOptions -> LintOptions -> LintOptions # sconcat :: NonEmpty LintOptions -> LintOptions # stimes :: Integral b => b -> LintOptions -> LintOptions # | |
Monoid LintOptions Source # | |
Defined in Hadolint.Lint mempty :: LintOptions # mappend :: LintOptions -> LintOptions -> LintOptions # mconcat :: [LintOptions] -> LintOptions # |
type WarningRule = RuleCode Source #
type IgnoreRule = RuleCode Source #
type TrustedRegistry = Text Source #