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

Đang mở Phù hợp với người mới
#4,124 3 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Swatantra-66 đang làm issue này rồi.

Từ ngày 6/10/2026.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java, javascript, yaml
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Bắt đầu với bảy tệp cấu hình và plugin Mockito được liệt kê, kiểm tra nội dung hiện có của chúng và định dạng header ASF tiêu chuẩn của repository. Thêm header vào các tệp đó và giữ nguyên các tệp NOTICE, bên thứ ba, được tạo tự động và không có comment đã liệt kê. Chạy các bài kiểm thử tải inline mock maker để xác nhận rằng các dòng # được bỏ qua.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
4.6k
Fork
470
Merge trung bình
9 giờ 28 phút
Pull request đã merge (30 ngày)
33

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/fory

Tất cả issue của apache/fory

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.