【发布时间】:2017-04-06 02:46:46
【问题描述】:
我在 atom.io 中使用 uncrustify 和 atom-beautify 来根据 google 样式指南格式化我的 C++ 代码。我正在使用 CPPlint 来验证代码的格式是否正确。我正在使用来自https://gist.githubusercontent.com/philectron/1a1e1ccb06d5643cd61d85fc5ecaf429/raw/8813567b8f7dd49003228e19c3d10719b49995a1/uncrustify-preferences.cfg 的配置文件。但是美化后cpplint报如下问题。
- “代码和 cmets [whitespace/cmets] 之间最好至少有两个空格”未强制执行,我在多个地方都收到此错误。 Uncrustify - How do I align trailing comments by two-space gap? 的这个问题的答案不起作用。
- “受保护:应缩进 +1 个空格。”我在私人和公共方面也遇到了同样的错误。
如果这不是正确的方法,我如何在 atom.io 中美化和 lint。
【问题讨论】:
标签: atom-editor uncrustify cpplint atom-beautify