hadolint 1.11.1 → 1.11.2
raw patch · 3 files changed
+7/−3 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- hadolint.cabal +2/−2
- src/Hadolint/Rules.hs +2/−1
- test/Spec.hs +3/−0
hadolint.cabal view
@@ -2,10 +2,10 @@ -- -- see: https://github.com/sol/hpack ----- hash: f8fed6126c23c203348e7319bd1f81b5659ca6256407fd1cb7e5bebc6ecc42a1+-- hash: 3617c4ad1e8f8732140c07b827400df490da5de7511e79c1b509176b5a6d01c6 name: hadolint-version: 1.11.1+version: 1.11.2 synopsis: Dockerfile Linter JavaScript API description: A smarter Dockerfile linter that helps you build best practice Docker images. category: Development
src/Hadolint/Rules.hs view
@@ -640,7 +640,8 @@ isAptGetInstall = Shell.cmdHasArgs "apt-get" ["install"] hasYesOption cmd = "y" `elem` allFlags cmd ||- "yes" `elem` allFlags cmd || length (filter (== "q") (allFlags cmd)) > 1+ "yes" `elem` allFlags cmd || length (filter (== "q") (allFlags cmd)) > 1 ||+ "assume-yes" `elem` allFlags cmd allFlags cmd = snd <$> Shell.getAllFlags cmd aptGetNoRecommends :: Rule
test/Spec.hs view
@@ -612,6 +612,9 @@ it "apt-get with auto expanded yes" $ do ruleCatchesNot aptGetYes "RUN apt-get --yes install python" onBuildRuleCatchesNot aptGetYes "RUN apt-get --yes install python"+ it "apt-get with assume-yes" $ do+ ruleCatchesNot aptGetYes "RUN apt-get --assume-yes install python"+ onBuildRuleCatchesNot aptGetYes "RUN apt-get --assume-yes install python" it "apt-get install recommends" $ do ruleCatchesNot aptGetNoRecommends