-
-
Notifications
You must be signed in to change notification settings - Fork 184
Closed
Labels
wontfixThis will not be worked onThis will not be worked on
Description
Welcome
- Yes, I understand that the GitHub action repository is not the repository of golangci-lint itself.
- Yes, I've searched similar issues on GitHub and didn't find any.
Your feature request related to a problem? Please describe.
Currently the action can only lint, as run command is hardcoded.
We are switching from v1 and we want the same experience where the linter was able to tell if the code is not formatted. For that we planned to use golangci-lint fmt --diff, but it seems impossible with this action currently.
Describe the solution you'd like.
Allow running in fmt mode.
Maybe an action parameter can control this, e.g. if enabled, then run golangci-lint fmt --diff after golangci-lint run.
Describe alternatives you've considered.
Only alternative is not to use the action and install golangci-lint manually, which is discouraged.
Additional context.
No response
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on