[Feature]: Enforce Apache-2.0 license headers on all source files
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 4k
- Fork
- 177
- Merge medio
- 1g 20h
- PR unite (30g)
- 31
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di version-fox/vfox
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
version-fox/vfox#825 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
version-fox/vfox#823 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 Mezza giornata Idoneità per principianti 45/100
version-fox/vfox#824 ·
I maintainer di solito rispondono entro 1 giorno
-
Plugins fail to load when the HOME path contains ';' or '?' (Lua package.path)Forse già presa @Xnadir l’ha presa oggi. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
version-fox/vfox#821 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG]: the Available cache ignores the environment, so one setting's list is shown for anotherForse già presa @nanami7777777 l’ha presa oggi. Apertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
version-fox/vfox#816 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di version-fox/vfox
Issue simili
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
seaweedfs/seaweed-block#443 ·
I maintainer di solito rispondono entro 1 giorno
-
HTTP `batch.Send` returns nil and inserts no rows when the block does not encodeForse già presa @Indian-boult l’ha presa oggi. Apertabug queries
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ClickHouse/clickhouse-go#2155 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
transparency-dev/tessera#1286 ·
I maintainer di solito rispondono entro 1 giorno