ericcornelissen / depreman

Manage npm deprecations
https://www.npmjs.com/package/depreman
GNU Affero General Public License v3.0
0 stars 0 forks source link

Create script to check license headers for source files #43

Closed ericcornelissen closed 2 weeks ago

ericcornelissen commented 2 weeks ago

Closes #15

Summary

Add a second script that checks that a license header is present in all source files. This is to ensure every source file has the license stated explicitly and consistently.

A custom script was chosen over alternatives such as ESLint plugins because these generally were not flexible enough, not providing the capability to enforce strictly that the header should appear as is at the top of the file without any leading or trailing content AND have the comment be line-based (instead of a block comment).