GoogleCloudPlatform / GoogleCloudPlatform/cloud-foundation-toolkit
module-swapper indentation
Open
triaged
- Dominant language
- Go
- Stars
- 1.1k
- Forks
- 493
- Avg merge
- 4h 12m
- Merged PRs (30d)
- 1
Description
For block with more than source and version, after the swap the indentation maybe incorrect resulting in a lint error:
```
module "gce-lb-https" {
project = var.project
source = "terraform-google-modules/lb-http/google"
version = "~> 10.0"
```
>
```
module "gce-lb-https" {
project = var.project
source = "../.." # [restore-marker] source = "terraform-google-modules/lb-http/google"
```
A quick fix is to break up the block:
```
module "gce-lb-https" {
source = "terraform-google-modules/lb-http/google"
version = "~> 10.0"
project = var.project
```
Contributor guide
Assessment
This issue has not been assessed yet.