mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-18 22:57:38 +01:00
Merge pull request #9951 from wy65701436/fix-9080
add coding style documentation
This commit is contained in:
commit
308424f840
@ -213,8 +213,8 @@ Write code on the new branch in your fork. The coding style used in Harbor is su
|
||||
|
||||
Try to limit column width to 120 characters for both code and markdown documents such as this one.
|
||||
|
||||
Always run [golint](https://github.com/golang/lint) on source code before
|
||||
committing your changes.
|
||||
As we are enforcing standards set by [golint](https://github.com/golang/lint), please always run golint on source code before committing your changes. If it reports an issue, in general, the preferred action is to fix the code to comply with the linter's recommendation
|
||||
because golint gives suggestions according to the stylistic conventions listed in [Effective Go](https://golang.org/doc/effective_go.html) and the [CodeReviewComments](https://github.com/golang/go/wiki/CodeReviewComments).
|
||||
```
|
||||
#Install fgt and golint
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user