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

formatter: Add support for --format compact #1085

Merged
merged 1 commit into from
Mar 28, 2021
Merged

formatter: Add support for --format compact #1085

merged 1 commit into from
Mar 28, 2021

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Mar 20, 2021

This PR adds a new formatter called compact. This is a simple output format that expresses an issue in one line, similar to the ESLint compact format:

$ tflint -f compact
1 issue(s) found:

template.tf:11:19: Error - "invalid" is an invalid value as instance_type (aws_instance_invalid_type)

This format does not include the end line and end column, and the stacktrace for module arguments.

This is useful for regexp-based matching, such as the GitHub Actions problem matcher. See also terraform-linters/setup-tflint#12

@wata727 wata727 merged commit 7e62066 into master Mar 28, 2021
@wata727 wata727 deleted the format_compact branch March 28, 2021 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant