mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-13 06:21:15 +00:00
docs: Add gofmt to simple example
This commit is contained in:
parent
a5307c8f68
commit
829eba95a4
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ jobs:
|
|||
uses: golangci/golangci-lint-action@v7
|
||||
with:
|
||||
version: v2.0
|
||||
# optionally you can check the formatting with gofmt which (since golanci-lint v2) is no longer a linter
|
||||
- name: check formatting
|
||||
run: golangci-lint fmt --diff --enable gofmt
|
||||
```
|
||||
|
||||
</details>
|
||||
|
|
|
|||
Loading…
Reference in a new issue