What’s New

hadolint

Developer Tools

hadolint release notes.

Latest v2.15.1 · by hadolintWebsitehadolint/hadolint

Changelog

v2.15.0

Added 11
  • Check if clean is after install package
  • Enable file-path-in-report flag for codeclimate formatters
  • SonarQube Formatter support for --file-path-in-report
  • Ignore dnf group install from DL3041
  • DL3063 new rule for stage name reserved word
  • DL3065 new rule no FROM with $TARGETPLATFORM
Changed 4
  • Relax DL3062
  • DL3040 match different install command variations
  • DL3025 trigger on HEALTHCHECK instructions too
  • DL3018 allow fuzzy version matching
Fixed 6
  • Fix DL3018 for apk ~ pins
  • Fix propagating shell options across build stages
  • Shellcheck fix false-positives with exec notation
  • Fix DL3013 false positive on pipx --python flag
  • Fix DL3013 false positive on pip --root-user-action flag
  • Fix DL3016 false positive on npm --registry flag
What's Changed
New Contributors

Full Changelog: https://github.com/hadolint/hadolint/compare/v2.14.0...v2.15.0

v2.14.0

Added 1
  • Add new rule DL3062 to check go install
Changed 4
  • Handle RPM package epoch in DL3041 and DL3033
  • Handle RPM package with plus sign in DL3041 and DL3033
  • Allow either cache or tmpfs mounts in DL3009
  • Relax dependencies
What's Changed
New Contributors

Full Changelog: https://github.com/hadolint/hadolint/compare/v2.13.1...v2.14.0

v2.13.1

Changed 9
  • DL3011 AST changes
  • DL3048 now accepts LABEL keys that contain underscores or slashes
  • DL3060 should be suppressed if cache mounts are used
  • DL3009 rule improved to properly handle all apt-based package managers
  • Improve parsing of gem install flag patterns to reduce false positives
  • Allow comments following inline pragmas
Fixed 6
  • False positive in DL3022
  • False positive in DL3014 on double quiet
  • False positive in DL3006
  • Misidentification of pipenv
  • False negatives for DL3041 with packages that include a dash in their package name
  • Character escaping in checkstyle formatter
Removed 1
  • Delete rule DL3005
What's Changed
New Contributors

Full Changelog: https://github.com/hadolint/hadolint/compare/v2.12.0...v2.13.1

v2.12.1-beta

Pre-release
What's Changed

Full Changelog: https://github.com/hadolint/hadolint/compare/v2.12.0...v2.12.1-beta

v2.11.0

Added 4
  • Add DL3022 support for copying from images
  • Add SC3046 in hadolint JSON Schema
  • Allow rm yum cache clean up
  • Add global ignore pragma feature
Changed 3
  • Update environment variables handling
  • Unpin docker version in pre-commit hook
  • Update language-docker to 11.0.0
Fixed 7
  • Fix config file key for output format
  • Fix DL3049 behaviour with multistage builds
  • Fix DL3057 multiple warnings for multistage builds
  • Fix DL3013 false positives for VCS, http and local path packages
  • Fix typo in DL3026Spec.hs
  • Fix missing space in DL3047
  • Allow BUILDPLATFORM and TARGETPLATFORM variables in DL3029
What's Changed
New Contributors

Full Changelog: https://github.com/hadolint/hadolint/compare/v2.10.0...v2.11.0

v2.9.1

Added 4
  • DL3061: Check for instruction order
  • DL3038, DL3040, DL3041: Add support for microdnf
  • DL3026: Trusted registries wildcard domains
  • Allow --platform=$BUILDPLATFORM
Changed 5
  • Disable ignore pragma via options
  • Bring env var for trusted registries in sync with docs
  • Switch to non-rate limited ghcr.io hosted container for pre-commit
  • Respect NO_COLOR specification
  • Bump shellcheck and language docker dependencies
Fixed 4
  • Display version string correctly
  • Fix config file key trustedRegistries
  • DL3007: Do not error out when latest tag is used alongside a sha256
  • DL3021: Fix behavior with quotes in target path
Removed 1
  • Remove duplicate extension
What's Changed
New Contributors

Full Changelog: https://github.com/hadolint/hadolint/compare/v2.8.0...v2.9.1

Discussion