module Hadolint.Rule.DL4000 (rule) where import Hadolint.Rule import Language.Docker.Syntax (Instruction (..)) rule :: Rule args rule :: Rule args rule = RuleCode -> DLSeverity -> Text -> (Instruction args -> Bool) -> Rule args forall args. RuleCode -> DLSeverity -> Text -> (Instruction args -> Bool) -> Rule args simpleRule RuleCode code DLSeverity severity Text message Instruction args -> Bool forall args. Instruction args -> Bool check where code :: RuleCode code = RuleCode "DL4000" severity :: DLSeverity severity = DLSeverity DLErrorC message :: Text message = Text "MAINTAINER is deprecated" check :: Instruction args -> Bool check (Maintainer Text _) = Bool False check Instruction args _ = Bool True {-# INLINEABLE rule #-}