1
0
mirror of https://github.com/Jguer/yay synced 2024-07-05 09:50:44 +00:00

fix(docs): Add reference to make lint in section talking about go fmt.

This commit is contained in:
Matt Alexander 2021-10-29 16:14:04 -05:00 committed by J Guerreiro
parent 673f077e7f
commit 1c238dd724

View File

@ -70,6 +70,9 @@ All code should be formatted through `go fmt`. This tool will automatically
format code for you. We recommend, however, that you write code in the proper format code for you. We recommend, however, that you write code in the proper
style and use `go fmt` only to catch mistakes. style and use `go fmt` only to catch mistakes.
`make lint` will check your code against `go fmt`. You may need to install
[`golangci-lint`] as a dependency.
Use [pre-commit](https://pre-commit.com/) to validate your commits against the various Use [pre-commit](https://pre-commit.com/) to validate your commits against the various
linters configured for this repository. linters configured for this repository.
@ -77,3 +80,5 @@ linters configured for this repository.
Run `make test` to test Yay. This command will verify that the code is Run `make test` to test Yay. This command will verify that the code is
formatted correctly, run the code through `go vet`, and run unit tests. formatted correctly, run the code through `go vet`, and run unit tests.
[`golangci-lint`]: https://github.com/golangci/golangci-lint