[Build] Add ASF license headers to config files that allow comments

オープン 初心者向け
#4,124 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@Swatantra-66 がすでに取り組んでいます。

2026年10月6日 から。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
java, javascript, yaml

調査の方向性

列挙された7つの設定ファイルとMockitoプラグインファイルから始め、それらの既存の内容とリポジトリの標準的なASFヘッダー形式を確認します。それらのファイルにヘッダーを追加し、列挙されたNOTICE、サードパーティ、生成済み、およびコメントのないファイルは変更しないでください。inline mock makerを読み込むテストを実行し、#行がスキップされることを確認します。

索引モデルが issue の本文から書いたものです。

説明

enhancement
Feature Request

Some files in the repo have no ASF license header, even though their formats allow # comments. korandoru/hawkeye doesn't flag them in CI because it has no comment-style mapping for these files. It lists them as "unknown files" and skips them. This came up while verifying the 1.7.7-rc1 source release.

Files that could have the standard ASF header added (checked against main):

  • .yamllint
  • .prettierignore
  • javascript/.prettierignore
  • javascript/.npmrc
  • .github/CODEOWNERS
  • java/fory-core/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker
  • java/fory-latest-jdk-tests/src/test/resources/mockito-extensions/org.mockito.plugins.MockMaker

ASF policy does not require headers on trivial config files like these, so this is a consistency improvement, not a release blocker. Mockito skips # lines in plugin files, but the tests that load the inline mock maker should be run after the change to confirm it.

Files that should stay without an ASF header

For reference, the other unheaded files that hawkeye skips fall into these groups:

  • NOTICE files (NOTICE, dart/packages/fory/NOTICE, java/*/src/main/resources/META-INF/NOTICE)
  • Third-party code that keeps its original header (bazel/cython_library.bzl, which LICENSE lists)
  • Formats without comment syntax: javascript/.prettierrc, swift/.swift-format (both JSON), swift/Package.resolved (generated by SwiftPM), and .bazelversion (read as a bare version string)
Is your feature request related to a problem? Please describe

Not a problem as such. Adding headers where the format allows makes header coverage consistent.

主要言語
Java
スター
4.6k
フォーク
470
平均マージ
9時間 28分
マージ済み PR(30日)
33

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/fory のほかの issue

apache/fory の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。