Bump golangci-lint to 1.55.2 and fix issues

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2023-12-19 12:51:04 -05:00
parent 4552242276
commit 5cfb2f2615
11 changed files with 108 additions and 111 deletions

View File

@@ -30,23 +30,22 @@ the root directory of this source tree.
//
// Usage
//
// options := &terraform.Options{
// Path: "./examples",
// ShowHeader: true,
// HeaderFromFile: "main.tf",
// ShowFooter: true,
// FooterFromFile: "footer.md",
// SortBy: &terraform.SortBy{
// Name: true,
// },
// ReadComments: true,
// }
// options := &terraform.Options{
// Path: "./examples",
// ShowHeader: true,
// HeaderFromFile: "main.tf",
// ShowFooter: true,
// FooterFromFile: "footer.md",
// SortBy: &terraform.SortBy{
// Name: true,
// },
// ReadComments: true,
// }
//
// tfmodule, err := terraform.LoadWithOptions(options)
// if err != nil {
// log.Fatal(err)
// }
//
// ...
// tfmodule, err := terraform.LoadWithOptions(options)
// if err != nil {
// log.Fatal(err)
// }
//
// ...
package terraform