[Feature]: Enforce Apache-2.0 license headers on all source files
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 45/100
Hướng nghiên cứu
Start from the existing header in main.go and cmd/cmd.go, and the rule in AGENTS.md, to settle the exact header text. Then look at .github/workflows/ to pick where a license check job goes, and compare the reference config in version-fox/vfox-java (.licenserc.yaml). Done when CI fails on a missing header, the 71 listed files carry it, and exemptions are listed in the config. The PowerShell part is blocked on #722, so leave it out.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
1. Your usage scenarios?
Most source files carry the Apache-2.0 header (for example main.go, cmd/cmd.go and internal/manager.go), and AGENTS.md asks new Go files to keep the header style. Nothing checks it. Checked on main at c4f6275, 71 tracked files of the types below have no header:
| Type | Missing | Examples |
|---|---|---|
| Go | 22 of 245 | cmd/commands/base.go, cmd/commands/config.go, internal/shell/nushell.go, internal/shared/util/ci.go |
| PowerShell | 2 of 5 | completions/powershell_autocomplete.ps1, scripts/e2e-test.ps1 |
| Shell | 3 of 3 | install.sh, scripts/bump.sh, scripts/e2e-test.sh |
| Lua | 19 of 19 | internal/shell/clink_vfox.lua, examples/plugins/sample/main.lua |
| YAML and TOML | 15 of 15 | all of .github/workflows/, .goreleaser.yaml, .vfox.toml |
| Other | 10 | completions/bash_autocomplete, completions/zsh_autocomplete, completions/vfox.fish, inno_setup/*.iss, docs/.vitepress/theme/*.vue, packaging/msix/AppxManifest.xml |
The three PowerShell scripts that do have a header are packaging/msix/make-msix.ps1, packaging/msix/gen-assets.ps1 and scripts/e2e-msix-test.ps1.
The PowerShell part is blocked on an apache/skywalking-eyes release that supports .ps1 files, tracked in #722. This issue covers the rest of the repository.
The reference is version-fox/vfox-java. Its .licenserc.yaml (skywalking-eyes) covers Go, Lua, YAML and TOML, and its license.yml checks PowerShell files with addlicense and .license.tpl.
2. What is your expected outcome?
- A license-header check in CI, for example skywalking-eyes with a checked-in
.licenserc.yaml, covering Go, shell, Lua, YAML, TOML, Vue, Inno Setup and XML. - A PowerShell check for
.ps1files until #722 lands, for exampleaddlicensewith a.license.tpl. - The header added to every in-scope file that lacks it.
- Exemptions listed explicitly in the config, for example generated completion scripts and test fixtures.
- Ngôn ngữ chính
- Go
- Star
- 4k
- Fork
- 177
- Merge trung bình
- 1 ngày 20 giờ
- Pull request đã merge (30 ngày)
- 31
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của version-fox/vfox
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
version-fox/vfox#825 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
version-fox/vfox#823 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 45/100
version-fox/vfox#824 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Plugins fail to load when the HOME path contains ';' or '?' (Lua package.path)Có thể đã có người làm @Xnadir đã nhận hôm nay. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
version-fox/vfox#821 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: the Available cache ignores the environment, so one setting's list is shown for anotherCó thể đã có người làm @nanami7777777 đã nhận hôm nay. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
version-fox/vfox#816 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của version-fox/vfox
Issue tương tự
-
go good first issue test
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 2 ngày
-
[UI] Guard webApis against undefined window in SSR environmentsCó thể đã có người làm @madhavzanwar đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kind/enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
automated-analysis code-quality refactoring
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/gh-aw-mcpg#17105 ·
Maintainer thường phản hồi trong vòng 1 ngày