google / google/addlicense

Ignore empty files

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

Description

I have run the following command in the [capa](https://github.com/mandiant/capa/) project:
```
~/go/bin/addlicense -check .
```

It complains that some empty files are missing the header such as: [`capa/__init__.py`](https://github.com/mandiant/capa/blob/master/capa/__init__.py)

I think empty files do not need a copyright header and I think that `addlicense` should not add headers (or complain with the `-check` option) to empty files. This could be either the default or supported with an argument.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.