Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linter warnings even though syntax is correct #7

Open
Gerrit91 opened this issue Apr 20, 2021 · 0 comments
Open

Linter warnings even though syntax is correct #7

Gerrit91 opened this issue Apr 20, 2021 · 0 comments

Comments

@Gerrit91
Copy link
Collaborator

Gerrit91 commented Apr 20, 2021

The following instruction should be correct:

RUN test "${PKGMGR}" == "yum" \
 && (grep -E "^localpkg_gpgcheck=1" /etc/yum.conf \
 || echo "localpkg_gpgcheck=1" >> /etc/yum.conf) \
 || test "${PKGMGR}" != "yum"

But leads to:

$ docker-make -sl 
Step 0 : Linting "./Dockerfile" 
---> \[WARNING\] AND (&&) / OR (||) control operators must be in front of each concerned line for multi-line RUN commands (rule11_0, line: 40) 
---> \[WARNING\] AND (&&) / OR (||) control operators should be indented by a single white space in front of each concerned line for multi-line RUN commands (rule11_1, line: 40)
---> OK with warning(s)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant