Skip to content

Releases: lluissm/license-header-checker

v1.5.0

29 Oct 10:29
Compare
Choose a tag to compare

The tool now uses a regular expression to parse the license headers.

/* ... */ comment style is still the default option but now there is the possibility to provide a custom regex for other comment styles using the optional -e flag.

Changelog

  • 49fe6ad chore: update goreleaser fetch-depth: 0 (#48)
  • 063e297 chore: upgrade to go 1.21 and fix lint issues (#52)
  • 14318a5 chore: use gobin in make install-tools
  • c2e57fc feat: -e option for custom header regex (#53)
  • 62b35a8 refactor: print.go (#45)
  • 22d4ce5 refactor: simplify fileHandler (#46)

v1.4.0

10 Jul 19:02
69d790f
Compare
Choose a tag to compare

Changelog

  • Add golangci-lint and fix minor lint issues
  • Add GitHub action to check the licenses :)
  • Integrate goreleaser to automate releases
  • Add install script to download release automatically
  • Change implementation from filepath.Walk to filepath.WalkDir

v1.3.0

10 Jul 18:53
575c425
Compare
Choose a tag to compare

What's Changed

  • Go build tags (or anything before the existing license header) is not removed when replacing a license with -r option.

v1.2.0

12 Mar 00:18
56d800c
Compare
Choose a tag to compare

Improvements

  • Improved help (-h flag). Now shows synopsis and example.

v1.1.0

03 Mar 00:02
2b8f4ff
Compare
Choose a tag to compare

Improvements

  • Accept paths in -i flag instead of just file/folder names.
  • Improved output.

v1.0.2

25 Feb 17:48
5692512
Compare
Choose a tag to compare

Bug Fixes

Do not trim new lines at the end of the file when adding/replacing the license.

v1.0.1

24 Feb 18:50
7436e70
Compare
Choose a tag to compare

Bug Fixes

Avoid issues when the license header has leading/trailing spaces.

Improvements

More useful info to the user when may have forgotten -a and/or -r.

v1.0.0

21 Feb 16:06
Compare
Choose a tag to compare

Features

  • Scan folder to see if files of certain extensions have a specific license header.
  • Add target license to a file if it does not have any (optional with -a flag).
  • Replace license if it is different from target one (optional with -r flag).
  • Ignore specific files or folders (optional with -i flag).