multi configuration same language
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 35/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 停滞
- 领域
- build-system, tooling
调研方向
从 issue 中显示的 Gradle Kotlin 配置开始,重点关注两个 java 块、targetExclude 和 cleanthat()。确定是否可以组合针对同一语言的多个配置,同时广泛应用许可证头并选择性地应用 Cleanthat。完成的标准是:该配置支持这些独立的作用域,或者明确记录这一限制以及排除指定文件的受支持方式。
由索引模型根据 Issue 内容生成。
描述
So, due to an incompatibility down the stack with java 21 (at the time of this writing) I'm trying to have cleanThat skip a specific file. I'm not certain based on their docs if I can skip a specific file with this. Anyways, I tried this, hoping it might work (also tried adding a target)
java {
licenseHeader(copyright + javaLicense)
}
java {
targetExclude("**/TransactionBeanPostProcessorTest.java")
cleanthat().addMutators(listOf("SafeAndConsensual", "SafeButNotConsensual"))
}
yeah, that doesn't work, but could it? my hope was taking 2 passes, license header over everything, but clean that over most things. As it appears I'll have to choose to skip this one file entirely or remove clean that entirely (I doubt it finds problems for me anyways).
- 主要语言
- Java
- 星标
- 5.7k
- 派生
- 560
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 43
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
diffplug/spotless 的其他 Issue
-
难度 5/5 一周以上 新手友好度 15/100
-
难度 5/5 一周以上 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 66/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
难度 4/5 3-5 天 新手友好度 52/100
查看 diffplug/spotless 的全部 Issue
相似的 Issue
-
area/plugin
难度 2/5 1-3 小时 新手友好度 75/100
kestra-io/plugin-kestra#190 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
apache/rocketmq-dashboard#5064 ·