LicenseChecker

LicenseChecker is a command line utility that can be used to verify whether code files contain a required license header and optionally to fix those that don't. It is used extensively in our other projects to ensure that we keep our license headers up to date.

Usage

LicenseChecker may be run like so:

> LicenseChecker.exe -license-search "Copyright \(c\) 20\d{2}-20\d{2} Robert Vesse" -p "LicenseChecker.csproj" -license-file "License.txt" -fix -overwrite

The above instructs license checker to search for files referenced in the project file LicenseChecker.csproj that do not contain the expected regular expression, if it finds any of these it will use the license header provided in License.txt to fix the header overwriting any previous header in the file.

Download

Downloads for LicenseChecker may be obtained from the BitBucket repository.

Source Code

Source Code for LicenseChecker may be obtained from the BitBucket repository.