Repository navigation
Releases
Releases · forkcloser/godolint
v0.6.0
What's Changed
Breaking changes
- godolint takes hadolint's settings:
.hadolint.yamland its flags in the command, typed options in the SDK; the exit status follows the failure threshold (defaultinfo: style-only findings exit 0); DL3026 checksCOPY --fromand mounts by @closer-claudio in #181 - The SDK no longer exports what only the module itself could use, and a rule that is turned off no longer runs by @closer-claudio in #201
- Ignore pragmas apply from the line they are written on, as in hadolint: one above a blank line no longer silences, one above an empty comment or at the end of the file is no longer lost by @closer-claudio in #205
- A shellcheck configuration file that will not open is refused by the SDK and the command by @closer-claudio in #230
- WithShellcheck holds wherever it stands among the options, and once when given twice by @closer-claudio in #234
- A RUN shellcheck did not scan is an error of the lint, where it passed in silence by @closer-claudio in #236
Changes
- UPSTREAM.md: the row for #117 by @closer-claudio in #133
- README: drop the roadmap and the stale status, state the limitations by @closer-claudio in #143
- Rules follow hadolint master of 2026-10-19: DL4006 inherits SHELL across stages, DL3064 reports fewer non-secrets, any recursive rm cleans a cache (DL3009, DL3032, DL3040), DL3006 matches variables against stages by @closer-claudio in #174
- The label rules (DL3049, DL3051 to DL3056, DL3058) carry their whole message, as hadolint documents it, instead of a fragment by @closer-claudio in #175
- SDK:
RulesandRuledescribe every rule (code, severity, message) by @closer-claudio in #176 FROMimages by digest, behind a registry with a port, or with a${VAR:-default}are read correctly (DL3006, DL3007, DL3009, DL3045) by @closer-claudio in #179- Rules agree with hadolint's own tests: ONBUILD is read as hadolint composes it; DL3008, DL3009, DL3025, DL3060 and DL4001 fixed by @closer-claudio in #191
- DL3049 follows a required label through build stages, and reports the stage's
FROMline instead of line 0 by @closer-claudio in #192 - DL3060 reports a yarn cache clean that comes before the install even when the cache is a mount by @closer-claudio in #194
- A cache mount excuses a missing cleanup wherever hadolint finds it: under any home, and written dst= or destination= by @closer-claudio in #195
- README: the command's output is described as it is: hadolint's JSON, and no other format by @closer-claudio in #196
- godolint no longer crashes on two unaliased stages of one image with a HEALTHCHECK (DL3057 stack overflow) by @closer-claudio in #199
- ENV and LABEL are read with their quotes gone: a PATH quoted in part no longer hides the pairs after it, and quoted keys and single quotes work by @closer-claudio in #202
- RUN heredocs are linted: the body of RUN <<EOF is read as the script it is, and ONBUILD RUN <<EOF parses by @closer-claudio in #204
- UPSTREAM.md lists eleven more places where godolint differs from hadolint on purpose by @closer-claudio in #209
- DL3018 reports an unpinned package after apk add --repository=URL or --virtual=NAME by @closer-claudio in #210
- The label rules report every bad label of a LABEL line, and the email type wants a bare address by @closer-claudio in #213
- Violations are reported in order: by line, then by code, the same on every run by @closer-claudio in #206
- DL3044 no longer reports an ENV that reuses a name from an ENV it reported by @closer-claudio in #215
- DL3042 sees python -m pip install and pip3.x, and no longer reports a stage built on one that turned pip's cache off by @closer-claudio in #207
- DL3010 and DL3020 take for an archive what ADD really unpacks: tar under gzip, bzip2, xz or zstd by @closer-claudio in #214
- DL3033 and DL3041 give the same verdict on every run when two stages share an alias by @closer-claudio in #211
- ENV and LABEL values are read under the Dockerfile's escape directive (# escape=`) by @closer-claudio in #222
- DL4006 no longer asks for pipefail under SHELL ["cmd", "/S", "/C"] by @closer-claudio in #220
- DL3026 no longer reports FROM ${NS:-myorg}/base as an untrusted registry by @closer-claudio in #223
- DL3046 reports a long UID given as -mu 123456 or --uid 123456 by @closer-claudio in #217
- A RUN's words are read as the shell gives them: what an expansion holds, escaped characters, brace groups by @closer-claudio in #216
- DL3010 now reports an archive copied and unpacked in any stage, not in the last one only by @closer-claudio in #218
- An export is a command of a RUN, and busybox wget is wget: DL3059 and the rules about a wrapped command read them by @closer-claudio in #221
- DL3054 accepts every identifier of the SPDX License List (3.29.0), and reports a deprecated one or an expression by @closer-claudio in #225
- DL3010 reads tar options:
tar xfextracts, an x in a long option or in a name does not by @closer-claudio in #233 - ONBUILD followed by a tab is read, as a build reads it, where the file was refused by @closer-claudio in #240
- DL4006: a PowerShell under any of its names is not asked for pipefail by @closer-claudio in #239
- Read a stage's name in lower case, as a build does by @closer-claudio in #242
- A shellcheck finding in a heredoc is on its own line, and a pragma covers the RUN whole by @closer-claudio in #246
- A shell named without its path (SHELL ["bash", "-c"]) no longer reports SC2239 by @closer-claudio in #248
- A .hadolint.yaml with an unknown key or a format not written is obeyed, with a warning by @closer-claudio in #250
- A shell run through env or busybox (SHELL ["env", "bash", "-c"]) no longer reports SC1008 by @closer-claudio in #249
- A shell run through env after options in one word (env -iu X bash) no longer draws SC1008 by @closer-claudio in #251
Full Changelog: v0.5.1...v0.6.0
v0.5.1
What's Changed
Changes
- LintFile implemented, a refused instruction a parse error, the usage on stderr by @closer-claudio in #117
- The SDK and the command held to the README from the outside, and Lint fuzzed by @closer-claudio in #119
Dependencies
- chore(deps): update module github.com/forkcloser/dot to v1.3.1 by @renovate[bot] in #115
- fix(deps): update module github.com/mycophonic/primordium to v0.15.1 by @renovate[bot] in #104
- chore(deps): update module github.com/forkcloser/godolint to v0.5.0 by @renovate[bot] in #116
- chore(deps): update module github.com/golangci/golangci-lint/v2 to v2.15.0 by @renovate[bot] in #118
Full Changelog: v0.5.0...v0.5.1
v0.5.0
What's Changed
Changes
- generate verifies the hadolint tarball with the pinned sha256sum, no shasum fallback by @closer-claudio in #92
- lint-signers: the bot's taciturn key by @closer-claudio in #97
- primordium v0.15.0 by @closer-claudio in #102
- Carry the godolint command's release configuration by @closer-claudio in #106
- The generate recipe keeps the hadolint source under .build by @closer-claudio in #107
- gitignore: _*, bin, third-party go; unused template lines commented by @closer-claudio in #108
- Port hadolint master 8ae25c0: five rule fixes and DL3068, with UPSTREAM.md by @closer-claudio in #112
- Update dependency farcloser/limen to v0.14.0 by @closer-claudio in #113
Dependencies
- chore(deps): update module github.com/forkcloser/godolint to v0.4.0 by @renovate[bot] in #93
- chore(deps): update dependency farcloser/limen to v0.10.2 by @renovate[bot] in #94
- chore(deps): update dependency aquaproj/aqua-registry to v4.573.1 by @renovate[bot] in #95
- chore(deps): update dependency farcloser/limen to v0.11.0 by @renovate[bot] in #96
- chore(deps): update module golang.org/x/tools to v0.52.0 by @renovate[bot] in #98
- chore(deps): update dependency aquaproj/aqua-registry to v4.574.0 by @renovate[bot] in #99
- chore(deps): update module golang.org/x/vuln to v1.9.0 by @renovate[bot] in #100
- chore(deps): update dependency aquaproj/aqua-registry to v4.574.1 by @renovate[bot] in #101
- chore(deps): update module github.com/forkcloser/dot to v1.3.0 by @renovate[bot] in #103
- chore(deps): update dependency farcloser/limen to v0.12.0 by @renovate[bot] in #105
- chore(deps): update dependency farcloser/limen to v0.12.1 by @renovate[bot] in #109
- chore(deps): update dependency aquaproj/aqua-registry to v4.575.0 by @renovate[bot] in #110
- chore(deps): update dependency farcloser/limen to v0.13.0 by @renovate[bot] in #111
Full Changelog: v0.4.0...v0.5.0
v0.4.0
What's Changed
Changes
- CHANGELOG.md retired: the release notes are the pull request titles by @closer-claudio in #82
- Pragmas follow hadolint: stage ignore added, a list with a bad name is no pragma, DL1001 only on ignore= by @closer-claudio in #85
- shellcheck follows hadolint: a FROM inherits the stage it names,
# hadolint shell=read, exec-form RUN skipped by @closer-claudio in #86 - Pin Go 1.27.2 in aqua.yaml ahead of the limen v0.10.0 bump by @closer-claudio in #88
Dependencies
- chore(deps): update module github.com/forkcloser/godolint to v0.3.0 by @renovate[bot] in #84
- chore(deps): update module github.com/forkcloser/dot to v1.2.1 by @renovate[bot] in #83
- chore(deps): update dependency aquaproj/aqua-registry to v4.573.0 by @renovate[bot] in #89
- chore(deps): update dependency farcloser/limen to v0.10.1 by @renovate[bot] in #90
- fix(deps): update module github.com/mycophonic/primordium to v0.14.0 by @renovate[bot] in #70
- fix(deps): update module github.com/moby/buildkit to v0.34.0 by @renovate[bot] in #91
Full Changelog: v0.3.0...v0.4.0
v0.3.0
What's Changed
- chore(deps): update module golang.org/x/tools to v0.51.0 by @renovate[bot] in #65
- chore(deps): update module github.com/forkcloser/dot to v1.1.1 by @renovate[bot] in #64
- chore(deps): update dependency aquaproj/aqua-registry to v4.571.0 by @renovate[bot] in #66
- chore(deps): update dependency farcloser/limen to v0.8.0 by @renovate[bot] in #67
- go.mod: github.com/mycophonic/primordium v0.12.0 by @closer-claudio in #68
- chore(deps): update dependency farcloser/limen to v0.9.0 by @renovate[bot] in #69
- ci: call limen-verify.yaml (limen v0.9.0) by @closer-claudio in #71
- rules: messages read as hadolint emits them, not as its source breaks lines by @closer-claudio in #72
- CHANGELOG: 0.2.1 by @closer-claudio in #73
- chore(deps): update module github.com/forkcloser/dot to v1.2.0 by @renovate[bot] in #74
- rules: DL1001 keeps hadolint's two spaces; the 0.2.1 entry counts sixteen by @closer-claudio in #76
- Pin the hadolint source the rules are generated from, and regenerate in lint by @closer-claudio in #75
- hadolint v2.15.1: DL3056 and DL3063 to DL3067 added, ten rules follow upstream by @closer-claudio in #78
- chore(deps): update dependency aquaproj/aqua-registry to v4.572.0 by @renovate[bot] in #79
- CHANGELOG: the 0.2.1 section becomes 0.3.0 with hadolint 2.15.1 by @closer-claudio in #80
- go.mod: github.com/mycophonic/primordium v0.13.0 by @closer-claudio in #81
Full Changelog: v0.2.0...v0.3.0