Commit Graph

5 Commits

Author SHA1 Message Date
Riley Karson
8a237de2dd
Update gometalinter for modules, add staticcheck (#2908)
This isn't working locally, but it matches the changes made in https://github.com/terraform-providers/terraform-provider-azurerm/pull/2722 so maybe something freaky is going on and it will only work in CI?

Edit: This only works in CI (well, at least doesn't work locally for *me*) but the same is true in the Azure provider. Most of those rules can be turned back on provided we make the corresponding code changes, but let's bring back `unused` for now. I'll dupe over to tpgb on approval.
2019-02-05 11:47:40 -08:00
Riley Karson
c66e6865e1
Removed unused from gometalinter (#2907)
staticcheck is unhappy with my config file; I'll add it in when I get it working correctly.
2019-01-22 11:31:51 -08:00
Riley Karson
51ffdbb69a Add more linters to gometalinter (#2680) 2018-12-20 17:22:22 -08:00
Riley Karson
3439746a46 Update .gometalinter.json (#2675) 2018-12-20 17:22:22 -08:00
Riley Karson
ee48586fb2 Add gometalinter (#2627)
Parallel to https://github.com/terraform-providers/terraform-provider-azurerm/pull/2116

We need to run `gofmt -s` to switch over to the `gofmt` rule, and MM is going to complicate that. Once `1.20.0` is done, I'll run that command on flat MM files & add a `gofmt -s` step to MM generation (goimports does gofmt but doesn't do the s flag for silly reasons).

I'll duplicate this over to tpgb once this PR is merged.
2018-12-20 17:22:22 -08:00