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

add support for checkov for linting terraform files #4006

Merged
merged 9 commits into from
Dec 11, 2021

Conversation

thyme-87
Copy link
Contributor

@thyme-87 thyme-87 commented Dec 7, 2021

Display rule violations from checkov via ale. Motivated by checkov2vim which I did not manage to set up correctly on my machine.

I provided the most basic tests (derived from the tests for the terraform linter and ansible_lint) and I do hope that this is sufficient.

Please let me know if I missed anything.

@hsanson
Copy link
Contributor

hsanson commented Dec 9, 2021

When you add new linters or fixers, make sure to add them into the tables in supported-tools.md and ale-supported-languages-and-tools.txt. These files must be sorted properly so ensure the tool is added in the proper alphabetical order.

ale_linters/terraform/checkov.vim Outdated Show resolved Hide resolved
ale_linters/terraform/checkov.vim Outdated Show resolved Hide resolved
@hsanson
Copy link
Contributor

hsanson commented Dec 9, 2021

Also add an entry to ale-terraform.txt with the new linter and configuration options.

@thyme-87
Copy link
Contributor Author

thyme-87 commented Dec 9, 2021

@hsanson Thank you for the feedback and the explanations! I updated the branch accordingly and hope, it is now ready for being merged.

@hsanson
Copy link
Contributor

hsanson commented Dec 10, 2021

@thyme-87 sorry, forgot to mention you have to add checkov entry to the list of tools in ale.txt file. Make sure to add it in the same order as in the ale-terraform.txt file.

Copy link
Contributor

@hsanson hsanson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution.

@hsanson hsanson merged commit 091592b into dense-analysis:master Dec 11, 2021
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.

None yet

2 participants