在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:golang/lint开源软件地址:https://github.com/golang/lint开源编程语言:Go 96.8%开源软件介绍:NOTE: Golint is deprecated and frozen.
There's no drop-in replacement for it, but tools such as Staticcheck
and Golint is a linter for Go source code. InstallationGolint requires a supported release of Go.
To find out where UsageInvoke The output of this tool is a list of suggestions in Vim quickfix format, which is accepted by lots of different editors. PurposeGolint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes. Golint differs from govet. Govet is concerned with correctness, whereas golint is concerned with coding style. Golint is in use at Google, and it seeks to match the accepted style of the open source Go project. The suggestions made by golint are exactly that: suggestions. Golint is not perfect, and has both false positives and false negatives. Do not treat its output as a gold standard. We will not be adding pragmas or other knobs to suppress specific warnings, so do not expect or require code to be completely "lint-free". In short, this tool is not, and will never be, trustworthy enough for its suggestions to be enforced automatically, for example as part of a build process. Golint makes suggestions for many of the mechanically checkable items listed in Effective Go and the CodeReviewComments wiki page. ScopeGolint is meant to carry out the stylistic conventions put forth in Effective Go and CodeReviewComments. Changes that are not aligned with those documents will not be considered. ContributionsContributions to this project are welcome provided they are in scope, though please send mail before starting work on anything major. Contributors retain their copyright, so we need you to fill out a short form before we can accept your contribution. VimAdd this to your ~/.vimrc:
If you have multiple entries in your GOPATH, replace Running Optionally, add this to your
EmacsAdd this to your
If you have multiple entries in your GOPATH, replace Running M-x golint will run golint on the current file. For more usage, see Compilation-Mode. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论