module Hadolint.Rule.DL3025 (rule) where import Hadolint.Rule import Language.Docker.Syntax 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 "DL3025" severity :: DLSeverity severity = DLSeverity DLWarningC message :: Text message = Text "Use arguments JSON notation for CMD and ENTRYPOINT arguments" check :: Instruction args -> Bool check (Cmd (ArgumentsText args _)) = Bool False check (Entrypoint (ArgumentsText args _)) = Bool False check Instruction args _ = Bool True {-# INLINEABLE rule #-}