UNCLASSIFIED - NO CUI

Pre-commit hooks

As a developer of this terraform module, I want the ability to register pre-commit hooks that checks my code before I commit it, so that my system can catch dumb mistakes before I commit them to the repository

References:

Useful features

  • Automatic documentation generation with terraform-docs
  • Automatic terraform fmt
  • Automatic tflint scan
  • Automatic tfsec scan
  • Forbid accidental commit of some credential types
  • Automatically apply standardized code style with hooks like prettier, end-of-file-fixer, mixed-line-ending, trailing-whitespace,etc
Edited by Andy Roth