67

revive —可作为 golint 替代品的 Go 代码质量检测工具

 5 years ago
source link: https://www.oschina.net/p/revive?amp%3Butm_medium=referral
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

revive 是一个 Go 语言的代码质量检测工具(Linter for Go),具有快速、可配置、可扩展、灵活和美观这些特性,可作为 golint 的替代方案。

revive 为自定义规则的开发提供了一个框架,你也可以定义一个严格的预设来增强开发和代码审查流程。

revive 与 golint 的不同之处

  • 可以使用配置文件来启用或禁用规则

  • 使用 TOML 文件配置 linting 规则

  • 运行相同的规则,比 golint 快两倍

  • 与 golint 相比,revive 提供了更多规则

  • 每个人都可以使用自定义规则或格式化器轻松对它进行扩展

  • ……

q6VJr2z.jpg!web


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK