mirror of
https://github.com/golangci/golangci-lint-action.git
synced 2025-12-16 07:28:27 +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
|
uses: golangci/golangci-lint-action@v7
|
||||||
with:
|
with:
|
||||||
version: v2.0
|
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>
|
</details>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue