Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- applyConfig :: Maybe FilePath -> LintOptions -> IO (Either String LintOptions)
- data ConfigFile = ConfigFile {}
Documentation
applyConfig :: Maybe FilePath -> LintOptions -> IO (Either String LintOptions) Source #
If both the ignoreRules and rulesConfig properties of Lint options are empty then this function will fill them with the default found in the passed config file. If there is an error parsing the default config file, this function will return the error string.
data ConfigFile Source #
Instances
Eq ConfigFile Source # | |
Defined in Hadolint.Config (==) :: ConfigFile -> ConfigFile -> Bool # (/=) :: ConfigFile -> ConfigFile -> Bool # | |
Show ConfigFile Source # | |
Defined in Hadolint.Config showsPrec :: Int -> ConfigFile -> ShowS # show :: ConfigFile -> String # showList :: [ConfigFile] -> ShowS # | |
Generic ConfigFile Source # | |
Defined in Hadolint.Config type Rep ConfigFile :: Type -> Type # from :: ConfigFile -> Rep ConfigFile x # to :: Rep ConfigFile x -> ConfigFile # | |
FromYAML ConfigFile Source # | |
Defined in Hadolint.Config | |
type Rep ConfigFile Source # | |
Defined in Hadolint.Config type Rep ConfigFile = D1 ('MetaData "ConfigFile" "Hadolint.Config" "hadolint-1.19.0-KeE0rsHpnfEItn5r2ZRm3g" 'False) (C1 ('MetaCons "ConfigFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "ignoredRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [IgnoreRule])) :*: S1 ('MetaSel ('Just "trustedRegistries") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe [TrustedRegistry])))) |