Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hadolint.Lint
Synopsis
- type IgnoreRule = Text
- type TrustedRegistry = Text
- data LintOptions = LintOptions {}
- data OutputFormat
- = Json
- | TTY
- | CodeclimateJson
- | Checkstyle
- | Codacy
- printResultsAndExit :: OutputFormat -> Result Text DockerfileError -> IO ()
- lint :: LintOptions -> NonEmpty String -> IO (Result Text DockerfileError)
- analyzeAll :: RulesConfig -> Dockerfile -> [RuleCheck]
- analyzeEither :: RulesConfig -> Either t Dockerfile -> [RuleCheck]
Documentation
type IgnoreRule = Text Source #
type TrustedRegistry = Text Source #
data LintOptions Source #
Constructors
LintOptions | |
Fields
|
Instances
Show LintOptions Source # | |
Defined in Hadolint.Lint Methods showsPrec :: Int -> LintOptions -> ShowS show :: LintOptions -> String showList :: [LintOptions] -> ShowS |
data OutputFormat Source #
Constructors
Json | |
TTY | |
CodeclimateJson | |
Checkstyle | |
Codacy |
Instances
Eq OutputFormat Source # | |
Defined in Hadolint.Lint | |
Show OutputFormat Source # | |
Defined in Hadolint.Lint Methods showsPrec :: Int -> OutputFormat -> ShowS show :: OutputFormat -> String showList :: [OutputFormat] -> ShowS |
printResultsAndExit :: OutputFormat -> Result Text DockerfileError -> IO () Source #
lint :: LintOptions -> NonEmpty String -> IO (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. Depending on the preferred printing format, it will output the results to stdout
analyzeAll :: RulesConfig -> Dockerfile -> [RuleCheck] Source #
Returns the result of applying all the rules to the given dockerfile
analyzeEither :: RulesConfig -> Either t Dockerfile -> [RuleCheck] Source #
Helper to analyze AST quickly in GHCI