googleapis / googleapis/google-cloud-java

[sdk-platform-java] License enforcer for modified Java files

未关闭
#12,523 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p4 type: bug
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
157

描述

Thanks for stopping by to let us know something could be better!

**Is your feature request related to a problem? Please describe.**
Google Copyright should be written similar to `Copyright 2010 Google LLC`. Currently, a lot of our existing code has copyright enforced as `Copyright {Year} Google Inc.`.

When we make a code change, we should enforce that the header should be updated to `Copyright {Original Year} Google LLC`

**Describe the solution you'd like**
When there is a modification to the Java code, we should have a check to ensure that the header is modified to the correct value.

**Describe alternatives you've considered**
Could the checkstyle plugin be enhanced so that it is enforced on updates? Or can we write a script to check for modified files and check that the copyright is being updated to LLC?

The current checkstyle plugin only checks that it follows the regex in `java.header`. Since we have whitelisted either `Google Inc.` and `Google LLC`, it is currently not being enforced.

**Additional context**
For more information, see the internal page about copyright.

贡献指南

打开贡献指南

调研方向

首先检查 checkstyle plugin 配置以及 issue 中描述的 `java.header` 正则表达式。比较现有对 `Google Inc.` 和 `Google LLC` 的允许规则,并确定如何识别已修改的 Java 文件。当 Java 代码发生更改时,检查能够可靠地要求使用更新后的 LLC 版权头,即表示完成。

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

评估

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

把新 issue 发到你的邮箱

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