google / google/addlicense

The files with copyright headers are not skipped.

Open
#203 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
886
Forks
194
PR merge metrics
No merged PRs in 30d

Description

Hey all,

I am running the command below.

`addlicense -f license.txt .`

This should ignore the files which has the header defined in license.txt. However, it adds a new header on top of files where license header exists already.

Contributor guide

Open the contributing guide

Research direction

Reproduce the problem with `addlicense -f license.txt .` and inspect the existing-header detection path. Verify how headers from `license.txt` are matched against scanned files; done means files already containing that header are skipped rather than receiving a duplicate header.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.