在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
Staticcheck is a state of the art linter for the Go programminglanguage. Using static analysis, it finds bugs and performance issues,offers simplifications, and enforces style rules. Financial support by private and corporate sponsors guarantees the tool's continued development.Please become a sponsor if you or your company rely on Staticcheck. DocumentationYou can find extensive documentation on Staticcheck on its website. InstallationReleasesIt is recommended that you run released versions of the tools. Thesereleases can be found as git tags (e.g. The easiest way of using the releases from source is to use a Gopackage manager such as Godep or Go modules. Alternatively you can usea combination of MasterYou can also run the master branch instead of a release. Note thatwhile the master branch is usually stable, it may still contain newchecks or backwards incompatible changes that break your build. Byusing the master branch you agree to become a beta tester. ToolsAll of the following tools can be found in the cmd/ directory. Eachtool is accompanied by its own README, describing it in more detail.
LibrariesIn addition to the aforementioned tools, this repository contains thelibraries necessary to implement these tools. Unless otherwise noted, none of these libraries have stable APIs.Their main purpose is to aid the implementation of the tools. If youdecide to use these libraries, please vendor them and expect regularbackwards-incompatible changes. System requirementsWe support the last two versions of Go. |
请发表评论