-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #232 from cycloidio/lo-golangci-lint
lint: change to golangci-lint
- Loading branch information
Showing
31 changed files
with
137 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# options for analysis running | ||
# full configuration example can be found at https://github.com/golangci/golangci-lint/blob/master/.golangci.example.yml | ||
run: | ||
# timeout for analysis, e.g. 30s, 5m, default is 1m | ||
timeout: 10m | ||
concurrency: 4 | ||
go: "1.22" | ||
|
||
|
||
# all available settings of specific linters | ||
linters-settings: | ||
|
||
misspell: | ||
# Correct spellings using locale preferences for US or UK. | ||
# Default is to use a neutral variety of English. | ||
# Setting locale to US will correct the British spelling of 'colour' to 'color'. | ||
locale: US | ||
ignore-words: | ||
- licence | ||
- licences | ||
- utilisation | ||
- cancelled | ||
|
||
staticcheck: | ||
# https://staticcheck.io/docs/options#checks | ||
checks: ["all", "-SA1019", "-SA5012"] | ||
|
||
|
||
linters: | ||
disable-all: true | ||
enable: | ||
- staticcheck | ||
- goimports | ||
- ineffassign | ||
- unused | ||
- unconvert | ||
- misspell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,59 @@ | ||
module github.com/cycloidio/inframap | ||
|
||
go 1.15 | ||
go 1.22 | ||
|
||
require ( | ||
github.com/adrg/xdg v0.4.0 | ||
github.com/agext/levenshtein v1.2.3 // indirect | ||
github.com/awalterschulze/gographviz v2.0.3+incompatible | ||
github.com/chr4/pwgen v1.1.0 | ||
github.com/cycloidio/flatmap v1.0.0 | ||
github.com/cycloidio/tfdocs v0.0.0-20230516095646-1dc8f8412d50 | ||
github.com/dmarkham/enumer v1.5.6 | ||
github.com/hashicorp/hcl/v2 v2.13.0 | ||
github.com/hashicorp/terraform v0.15.3 | ||
github.com/markbates/pkger v0.17.1 | ||
github.com/satori/go.uuid v1.2.0 | ||
github.com/spf13/afero v1.8.2 | ||
github.com/spf13/cobra v1.5.0 | ||
github.com/stretchr/testify v1.8.0 | ||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 | ||
golang.org/x/tools v0.1.12 | ||
) | ||
|
||
require ( | ||
github.com/agext/levenshtein v1.2.3 // indirect | ||
github.com/apparentlymart/go-textseg/v13 v13.0.0 // indirect | ||
github.com/apparentlymart/go-versions v1.0.1 // indirect | ||
github.com/davecgh/go-spew v1.1.1 // indirect | ||
github.com/fatih/color v1.13.0 // indirect | ||
github.com/gobuffalo/here v0.6.2 // indirect | ||
github.com/golang/protobuf v1.5.2 // indirect | ||
github.com/google/go-cmp v0.5.6 // indirect | ||
github.com/hashicorp/errwrap v1.1.0 // indirect | ||
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect | ||
github.com/hashicorp/go-hclog v1.0.0 // indirect | ||
github.com/hashicorp/go-multierror v1.1.1 // indirect | ||
github.com/hashicorp/go-retryablehttp v0.7.0 // indirect | ||
github.com/hashicorp/go-version v1.3.0 // indirect | ||
github.com/hashicorp/hcl/v2 v2.13.0 | ||
github.com/hashicorp/terraform v0.15.3 | ||
github.com/markbates/pkger v0.17.1 | ||
github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734 // indirect | ||
github.com/inconshreveable/mousetrap v1.0.0 // indirect | ||
github.com/mattn/go-colorable v0.1.12 // indirect | ||
github.com/mattn/go-isatty v0.0.14 // indirect | ||
github.com/mitchellh/copystructure v1.2.0 // indirect | ||
github.com/mitchellh/go-wordwrap v1.0.1 // indirect | ||
github.com/mitchellh/panicwrap v1.0.0 // indirect | ||
github.com/mitchellh/reflectwalk v1.0.2 // indirect | ||
github.com/pascaldekloe/name v1.0.1 // indirect | ||
github.com/satori/go.uuid v1.2.0 | ||
github.com/spf13/afero v1.8.2 | ||
github.com/spf13/cobra v1.5.0 | ||
github.com/stretchr/testify v1.8.0 | ||
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616 | ||
github.com/pmezard/go-difflib v1.0.0 // indirect | ||
github.com/spf13/pflag v1.0.5 // indirect | ||
github.com/zclconf/go-cty v1.8.3 // indirect | ||
golang.org/x/crypto v0.0.0-20220517005047-85d78b3ac167 // indirect | ||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect | ||
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect | ||
golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 // indirect | ||
golang.org/x/tools v0.1.12 | ||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect | ||
golang.org/x/text v0.3.7 // indirect | ||
google.golang.org/appengine v1.6.7 // indirect | ||
google.golang.org/protobuf v1.27.1 // indirect | ||
gopkg.in/yaml.v3 v3.0.1 // indirect | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.