8000 Support fmt · Issue #1245 · golangci/golangci-lint-action · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Support fmt #1245
Closed
Closed
@hypnoglow

Description

@hypnoglow

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

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0