19 Commits

Author SHA1 Message Date
Xuehai Pan
66bad5e563 fix: fix extra spacing in Apache License template 2023-01-18 13:42:46 +08:00
Mike Verbanic
cfe103d3f1 update terraform to use hash as comment per recommended guidelines (#137)
* update terraform to use hash as comment per recommended guidelines (https://developer.hashicorp.com/terraform/language/syntax/configuration\#comments)

* update golanci-lint version in linter.yaml per PR #132
2023-01-16 09:07:57 -08:00
Omkar Ghanekar
53d978ad7e Add support for bazel BUILD files 2022-10-10 19:30:07 -07:00
Ben Ford
758687b5e3 Add support for Puppet manifests (#92) 2022-04-20 13:21:18 -07:00
Will Norris
2b44b36759 feat: add support for cmake files
Co-authored-by: Sergii Baitala <sbaitala@gmail.com>
2021-11-15 07:55:21 -08:00
Carlos Boneti
fc41b40a66 Added .pl to the list of supported files (#98)
* Added .pl to the list of supported files

Includes support for Perl (.pl) file, treated in the same way as shell scripts.

* Adding .pl to the relevant test case
2021-10-27 18:51:01 -07:00
Will Norris
2fe3ee9447 fix: use block-style comments for java, scala, kotlin
fixes #46
2021-08-14 14:09:22 -07:00
Sergii Baitala
9cc7ec3e36 Support WiX files 2021-08-10 10:04:08 -07:00
Will Norris
4f7a460357 support ignoring file or directories
use the doublestar library to support pattern matching of files or
directories to ignore. This replaces (and deprecates) the previous
-skip flag which only supported file extensions.
2021-08-09 12:52:40 -07:00
CrazyMax
99ebc9c9db Update Dockerfile handling to keep parser directives at the top
Signed-off-by: CrazyMax <google@crazymax.dev>
2021-08-09 12:50:07 -07:00
CrazyMax
5be3beef79 Add hcl extension
Signed-off-by: CrazyMax <google@crazymax.dev>
2021-08-09 12:45:59 -07:00
Will Norris
b431030b15 use text/template to avoid HTML escaping
Co-authored-by: Roy O'Young <roy2220@outlook.com>

Closes #57
2021-08-09 11:36:20 -07:00
Will Norris
366936ef00 tests: add unit tests for header and template funcs
Much of this is being tested with the existing file-based tests in
testdata/*, but this moves us toward a much more targetted and simpler
test structure.
2021-08-09 11:20:27 -07:00
Tim Clifford
fb22319bcc add support for MPL license 2020-04-14 21:20:33 +02:00
Mithun Ayachit
27146d5f03 Implement -check flag
When this flag is used:

* The program never modifies any files
* If all files in the pattern contain a license, the program exits with
a zero exit code
* If at least one file in the pattern requires modification to include
license text, the program prints such files to STDOUT and exits with
a non-zero exit code
2020-02-18 08:54:38 -05:00
Mithun Ayachit
c46413539e replace WaitGroup with errgroup to allow error handling and propagation
The program now exits with a non-zero code when errors are encountered
while reading and/or writing files.

This now also introduces Go Modules for dependency management
2020-02-12 06:05:24 -06:00
alex
f6c8b89ee5 Switch year arg from int to string
This effectively allows for arbitrary copyright
years. For instance, 2018-2019.
2019-01-07 14:10:08 +01:00
Daniel Seymour
66fdaacba5 Update test data licenses to use the current year and copyright holder 2018-12-19 15:59:35 -08:00
alex
6631c269a8 initial import 2016-06-27 12:03:58 +01:00