-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add format command on Makefile and remove vendor
This commit adds the format command to make it easier to be compliant to golangci-lint issues Signed-off-by: Ian Cardoso <[email protected]>
- Loading branch information
1 parent
eb83af0
commit abde5fe
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,3 +88,18 @@ Signed-off-by: Jane Smith <[email protected]> | |
|
||
In most cases, you can add this signoff to your commit automatically with the | ||
`-s` flag to `git commit`. Please use your real name and a reachable email address. | ||
|
||
|
||
## Golangci-lint ## | ||
|
||
There is a CI check for formatting on our code, you'll need to install `goimports` to be able to attend this check, you can do it by running the command: | ||
|
||
``` | ||
go install golang.org/x/tools/cmd/goimports@latest | ||
``` | ||
|
||
then run: | ||
|
||
``` | ||
make format | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters