Missing tflint execution in script after tflint --init #1381

Closed
opened 2024-10-21 21:35:45 +02:00 by mandresuri · 0 comments
mandresuri commented 2024-10-21 21:35:45 +02:00 (Migrated from github.com)

Description:
In the current version of the script, after initializing tflint using --init, the actual linting step with tflint --config="${cfg}" is missing. This causes Terraform files to not be linted.

Expected Behavior:
tflint should lint the Terraform files after --init is executed

Actual Behavior:
The script initializes tflint, but it doesn't perform the actual linting of the Terraform files.

Steps to Reproduce:
Run the script.
Observe that the linting step is not executed after initialization.
Proposed Solution:
Add the missing step:
&& tflint --config="${cfg}" in https://github.com/fluidattacks/makes/blob/main/src/args/lint-terraform/entrypoint.sh

**Description:** In the current version of the script, after initializing tflint using --init, the actual linting step with tflint --config="${cfg}" is missing. This causes Terraform files to not be linted. **Expected Behavior:** tflint should lint the Terraform files after --init is executed **Actual Behavior:** The script initializes tflint, but it doesn't perform the actual linting of the Terraform files. **Steps to Reproduce:** Run the script. Observe that the linting step is not executed after initialization. **Proposed Solution:** Add the missing step: `&& tflint --config="${cfg}"` in https://github.com/fluidattacks/makes/blob/main/src/args/lint-terraform/entrypoint.sh
This discussion has been locked. Commenting is limited to contributors.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
justin/makes#1381
No description provided.