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: 2 days 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 (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-23T01:57:24.000Z (about 1 year ago)
- Last Synced: 2024-08-03T13:14:22.235Z (3 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
[![Build Status](https://github.com/dodopizza/tflint-ruleset-dodo/workflows/Test%20and%20publish/badge.svg?branch=main)](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 |