Skip to content

Conversation

@msurovcak
Copy link
Contributor

Simply check terraform fmt to ensure Terraform code is ok.

Fixes #567

@msurovcak msurovcak force-pushed the terraform_support branch 2 times, most recently from 9397eda to a5cd495 Compare February 7, 2019 00:58
Copy link
Owner

@sds sds left a comment

Choose a reason for hiding this comment

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

Overall looks great, @msurovcak! Thanks for the pull request.

Happy to merge once comments are addressed. Thanks!

# frozen_string_literal: true

module Overcommit::Hook::PreCommit
# Runs 'terraform -fmt' against any modified *.tf files.
Copy link
Owner

Choose a reason for hiding this comment

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

Typo: terraform fmt

install_command: 'brew install swiftlint'
include: '**/*.swift'

Terraform:
Copy link
Owner

Choose a reason for hiding this comment

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

I would say we should call this TerraformFormat, as that is ultimately what it is checking. While I know Terraform is a pretty ubiquitous tool at this point, I think for some users just seeing "Terraform" doesn't necessarily hint at what it is doing.

Simply check terraform fmt.

Fixes sds#567
@msurovcak
Copy link
Contributor Author

Thanks for the review @sds, addresses both comments as they make perfect sense + updated error message to be more human language, not just filename.

@sds sds merged commit 3050cb6 into sds:master Feb 7, 2019
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.

2 participants