-
Notifications
You must be signed in to change notification settings - Fork 357
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
Provide Summary after tflint Command Run #1849
Comments
Current JUNIT outputs show this only - (so may be a bug) If I deliberately break something I get:
|
Is this about JUnit formatter? If so, this is the intended design. Rules (linter) and tests are different concepts and cannot be directly mapped to JUnit output format. For example, one rule may detect multiple issues. In that case, the sum of On the other hand, if you're talking about the default formatter, I think this request makes sense. See also #1758 |
Yes, the original request around the default formatter is why I started this. I was playing with the JUnit formatter to see if this would be acceptable to generate an appropriate test output for BitBucket Pipelines to latch onto. I would be happy with #1758 |
Thank you for your clarification. Perhaps this can be achieved by changing the Lines 24 to 30 in 1d58c87
The count of rules is not passed to the formatter, so we'll have to fix it more upstream, but it shouldn't be too difficult. |
Before getting into this, we should keep in mind that some people may want to empty the output if no issues. See #182 Also, there is currently no way to get a list of enabled rules, so we will need to extend the SDK to accomplish this. |
hacky stopgap before proper support: tflint --format=sarif | grep -Eo '"ruleId.*' | sort | uniq -c | sort -nr
9 "ruleId": "terraform_required_providers",
3 "ruleId": "terraform_unused_declarations", |
When running the tflint command within a pipeline, I want a summary report on successful and failed runs.
The Summary report should include
If the report contains failures:
The reason for this is to confirm that all rules have been run. This provides confidence in the Linting.
The text was updated successfully, but these errors were encountered: