GoogleCloudPlatform / GoogleCloudPlatform/cloud-foundation-toolkit

module-swapper indentation

Open
#2,091 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.