Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dodopizza/tflint-ruleset-dodo
Set of linter rules to use for dodo terraform code
https://github.com/dodopizza/tflint-ruleset-dodo
linter-plugin linters terraform
Last synced: 3 months ago
JSON representation
Set of linter rules to use for dodo terraform code
- Host: GitHub
- URL: https://github.com/dodopizza/tflint-ruleset-dodo
- Owner: dodopizza
- Created: 2022-01-20T11:54:13.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T01:57:24.000Z (over 1 year ago)
- Last Synced: 2024-08-03T13:14:22.235Z (7 months ago)
- Topics: linter-plugin, linters, terraform
- Language: Go
- Homepage:
- Size: 114 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TFLint Ruleset Dodo
[](https://github.com/dodopizza/tflint-ruleset-dodo/actions)This is a template repository with custom ruleset.
See also [Writing Plugins](https://github.com/terraform-linters/tflint/blob/master/docs/developer-guide/plugins.md) for more information.## Requirements
- TFLint v0.30+
- Go v1.17## Installation
You can install the plugin with `tflint --init`. Declare a config in `.tflint.hcl` as follows:
```hcl
plugin "dodo" {
enabled = trueversion = "0.1.0"
source = "github.com/dodopizza/tflint-ruleset-dodo"
}
```## Rules
All rules enabled by default and have `ERROR` severity.
| Name | Description |
| --- | --- |
| dodo_comments | Check that all comments written in consistent way. |
| dodo_file_content | Check that all files looks similarly, mostly focused on vertical alignment |
| dodo_terraform_backend_type | Check that modules specify `azurerm` as backend type |
| dodo_foreach_count | If resource have `for_each` or `count` expression check that they go as first argument and delimited by newline after it |