diffplug / diffplug/spotless

Better method for managing clang-format binaries

未关闭
#673 14 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看
enhancement
主要语言
Java
星标
5.7k
派生
561
平均合并
1 天 14 小时
30 天内合并 PR
43

描述

We are able to call `clang-format` by shelling out to it on the system path, and we are able to cache its results by enforcing a version check on the binary. However, if it isn't on the path, or the version is wrong, we just show a helpful error message and let the user figure it out from there:

https://github.com/diffplug/spotless/blob/608e128381c89260f8a38fba985415c1f962ec7b/lib/src/main/java/com/diffplug/spotless/cpp/ClangFormatStep.java#L70-L83

It would be nice if we could handle this better, or at least have better instructions.

贡献指南

打开贡献指南

调研方向

从链接的行开始查看 lib/src/main/java/com/diffplug/spotless/cpp/ClangFormatStep.java,并阅读现有的系统路径查找、版本检查和错误处理。查看 issue 讨论以确定已达成一致的方向;完成应意味着有更清晰的方式来处理缺失或不匹配的 clang-format 二进制文件,或提供能让用户解决这些情况的说明。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
tooling
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。