> ## Documentation Index
> Fetch the complete documentation index at: https://docs.envzero.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Using the TFLint plugin

> Integrate the TFLint plugin with env zero to analyze Terraform code for syntax errors, deprecated syntax, and best-practice violations during deployments.

## Overview

This plugin executes the `TFLint` CLI to analyze your code and find possible errors, receive warnings about deprecated syntax, and enforce best practices and naming conventions.

This plugin will install the `TFLint` binary, call `init` and execute `tflint` on the given directory.

For more information, check out the [TFLint Plugin git repository](https://github.com/env0/env0-tflint-plugin)

For an example repository that integrates the TFLint plugin, click [here](https://github.com/env0/templates/tree/master/plugins/tflint).

## Inputs

Set these under `inputs` when you [add the plugin](https://docs.envzero.com/guides/integrations/plugins.md) to a [custom flow step](https://docs.envzero.com/guides/admin-guide/custom-flows.md#hook-stages):

1. `version` (required) - the specific version of tflint you wish to use
2. `directory` (required) - the path to the directory with the IaC code to analyze (the root folder is your project's root folder)
3. `flags` - a string containing additional flags as one string

> [!NOTE]
>
> Additional Content
>
> * [What is Checkov: Benefits, Key Features, and Examples](https://www.envzero.com/blog/best-iac-scan-tool-what-is-checkov)
> * [What is tfsec: Benefits, Key Features, and Examples](https://www.envzero.com/blog/best-iac-scan-tool-what-is-tfsec)
> * [What is Terrascan: Benefits, Key Features, and Examples](https://www.envzero.com/blog/best-iac-scan-tools-what-is-terrascan)
> * [Best IaC Scanning Tools](https://www.envzero.com/blog/best-iac-scan-tool)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.