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

Update print=lint output format to be consistent with existing warning output. #4844

Closed
daghack opened this issue Apr 15, 2024 · 0 comments · Fixed by #4852
Closed

Update print=lint output format to be consistent with existing warning output. #4844

daghack opened this issue Apr 15, 2024 · 0 comments · Fixed by #4852
Assignees

Comments

@daghack
Copy link
Collaborator

daghack commented Apr 15, 2024

Follow up to #4761
While use the --debug flag to inspect linting warnings for a Dockerfile, we receive output which is formatted as follows:

 - Lint Rule 'StageNameCasing': Stage name 'buildER' should be lowercase (line 2)
Stage names should be lowercase
Dockerfile:2
--------------------
   1 |     ARG BASE=golang
   2 | >>> FROM $BASE:1.20-alpine AS buildER
   3 |
   4 |     WOrkdIR /go/src/github.com/restic/restic
--------------------

Whereas with the print=lint flag, the same warnings get printed out in a different format:

Lint Rule StageNameCasing
  Dockerfile:2
  Lint Rule 'StageNameCasing': Stage name 'buildER' should be lowercase (line 2)
  2  |  FROM $BASE:1.20-alpine AS buildER

print=lint output should be consistent with the other output of the lint warning, as well as having the rule violations be presented in a consistent order.

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

Successfully merging a pull request may close this issue.

1 participant