github.com/jpreese/tflint@v0.19.2-0.20200908152133-b01686250fb6/docs/guides/extend.md (about)

     1  # Extending TFLint
     2  
     3  TFLint allows you to add your own rules via plugins. This can enforce organization-specific naming conventions and best practices.
     4  
     5  Plugins are placed in the `~/.tflint.d/plugins` (or `./.tflint.d/plugins`) directory with the naming convention `tflint-ruleset-<NAME>` (`tflint-ruleset-<NAME>.exe` on Windows). You can explicitly enable the plugin by `.tflint.hcl` as follows:
     6  
     7  ```hcl
     8  plugin "NAME" {
     9      enabled = true
    10  }
    11  ```
    12  
    13  That's all. Now you can freely add custom rules to TFLint!
    14  
    15  You can also change the plugin directory with the `TFLINT_PLUGIN_DIR` environment variable.
    16  
    17  A plugin is provided as a single binary and can be built using [`tflint-plugin-sdk`](https://github.com/terraform-linters/tflint-plugin-sdk).