Replies: 3 comments
This comment has been hidden.
This comment has been hidden.
-
https://golangci-lint.run/docs/configuration/file/ Prior art is mixed. ESLint exposes fixes via CLI options only, while golangci-lint supports a config file parameter.
This can cause problems if applied to all inputs. Flags can only be specified once per CLI invocation. Config can be module-level, leading to hacky behaviors like this: https://github.com/terraform-linters/tflint/blob/master/docs/user-guide/config.md#format
Unlike If you agree that when recursing, modules should be able to opt in and out of auto-fix, that should avoid the Separately, if you can set |
Beta Was this translation helpful? Give feedback.
-
Personally, I'm not a fan of having |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
tflint recently added a
--fix
CLI application parameter.Support for the same thing should be added to the
.tflint.hcl
config file, for consistency.I prefer to have a single way to configure the application, but at the moment I need to provide both a config file as well as flags.
Here is an example of how it might look.
Beta Was this translation helpful? Give feedback.
All reactions