8000 formatters: Add GNU style formatter by m-ildefons · Pull Request #801 · hadolint/hadolint · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

formatters: Add GNU style formatter #801

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

Merged
merged 1 commit into from
Mar 22, 2022

Conversation

m-ildefons
Copy link
Collaborator

Add a GNU style formatter to Hadolint.
This formatter enhances Hadolints ability to produce output for
consumption by other programs, notably the integration with Emacs will
become easier. GNU style error messages are
described here: https://www.gnu.org/prep/standards/html_node/Errors.html

This formatter differs in three ways from the default TTY output format:

  • the GNU style has an additional colon after the line number
  • the GNU style has no color output
  • the GNU style includes the name of the program (hadolint) in the
    output, since Hadolint is not an interactive program

Adding a new formatter instead of modifying the existing TTY
formatter avoids breaking backwards compatibility. Since the differences
only matters when consuming Hadolint's output with another program,
configuring Hadolint to use this formatter does not hurt usability
either.

fixes: #766

hadolint-gnu-formatter

Add a GNU style formatter to Hadolint.
This formatter enhances Hadolints ability to produce output for
consumption by other programs, notably the integration with Emacs will
become easier. GNU style error messages are
described here: https://www.gnu.org/prep/standards/html_node/Errors.html

This formatter differs in three ways from the default TTY output format:
  - the GNU style has an additional colon after the line number
  - the GNU style has no color output
  - the GNU style includes the name of the program (hadolint) in the
    output, since Hadolint is not an interactive program

Adding a new formatter instead of modifying the existing TTY
formatter avoids breaking backwards compatibility. Since the differences
only matters when consuming Hadolint's output with another program,
configuring Hadolint to use this formatter does not hurt usability
either.

fixes: hadolint#766
@lorenzo
Copy link
Member
lorenzo commented Mar 22, 2022

thanks, this is great!

@lorenzo lorenzo merged commit df231d7 into hadolint:master Mar 22, 2022
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 this pull request may close these issues.

TTY output should include another colon
2 participants
0