File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
tools/ci/dockerfile_linter Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ # Test Dockerfile for CI: intentionally contains old-style ENV/ARG syntax
2+ FROM alpine:3.20
3+
4+ # Old-style ENV with single token (should modernize to ENV HOME=/root)
5+ ENV HOME /root
6+
7+ # Old-style ENV with spaces and embedded quotes (quotes inside should be escaped)
8+ ENV TITLE The "best" image
9+
10+ # Old-style ARG with default (should modernize to ARG VERSION=1.2.3)
11+ ARG VERSION 1.2.3
12+
13+ # Bare ARG (should remain unchanged; no '=' added)
14+ ARG NO_DEFAULT
15+
16+ # Old-style multi-line ENV with continuations (should collapse and wrap <=100 cols)
17+ ENV BUILD_PKGS gcc make musl-dev libcurl-dev python3-dev
18+
19+ # Already modern lines (should stay unchanged)
20+ ENV MODERN_A=1 MODERN_B=2
21+ ARG MODERN_ARG=ok
You can’t perform that action at this time.
0 commit comments