Terraform has various independent native and open-source tools that check for code smells, enforce policies, and identify common security flaws. These tools help create consistent and curated Infrastructure as Code when used in conjunction with a sprinkling of automation. We can use Pre-Commit Hooks as an on-demand tool to integrate and use these tools before checking code into source control. The
![Pre-Commit Hooks for Terraform](https://cdn-ak-scissors.b.st-hatena.com/image/square/4588fc8797b93259a9f7922ab44d45a15d99c80d/height=288;version=1;width=512/https%3A%2F%2Fmiro.medium.com%2Fv2%2Fresize%3Afit%3A1200%2F1%2Arjyv9b8dPPUhpXfWqG89Fw.jpeg)