140 Commits

Author SHA1 Message Date
Alejandro Lopez
0df0829f35 Add OCaml files to list of accepted extensions 2019-09-06 11:56:11 -04:00
alex
22550fa7c1 Merge pull request #21 from mjduijn/master
Add kotlin files to list of accepted extensions
2019-05-10 19:53:07 +02:00
mjduijn
ba3f334c00 Add kotlin files to list of accepted extensions 2019-05-10 11:35:41 +02:00
alex
2e5cf00261 Merge pull request #20 from google/multiyear
Switch year arg from int to string
2019-01-07 14:18:45 +01: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
alex
b4fa55f138 Merge pull request #19 from mbrukman/patch-1
Update default flag values in README.md
2019-01-07 09:48:39 +01:00
Misha Brukman
1f3818bd96 Fix default flag values in README.md
Update default values to match the source code in
https://github.com/google/addlicense/blob/master/main.go
2019-01-05 20:37:45 -05:00
alex
7af3504a2c Merge pull request #15 from thefirstofthe300/master
Add support for more file types
2018-12-20 08:01:58 +01:00
Daniel Seymour
76290e641d Update README with usage information for custom license file 2018-12-19 15:59:35 -08:00
Daniel Seymour
66fdaacba5 Update test data licenses to use the current year and copyright holder 2018-12-19 15:59:35 -08:00
Daniel Seymour
12f10136e4 Add support for several other file types
Adds support for Dockerfiles, Gemfiles, Ruby files, and Groovy files.
Also, in order to fully support Dockerfile and Gemfiles, a new file
extension parser was created to deal with files that do not have an
extension.
2018-12-19 15:56:43 -08:00
alex
84b339fa57 Add Travis CI integration
A simple setup to test on latest release
and one previous version of Go.

Also, run fmt and golint before testing.
2018-12-19 09:27:53 +01:00
alex
18b69d757d Merge pull request #16 from kant/patch-1
Fix CLA links: broken markdown
2018-12-19 08:57:20 +01:00
Darío Hereñú
0b49fe2982 Internal links fixed 2018-12-18 22:21:14 -03:00
alex
1e1ee4516a Merge pull request #14 from jmccann/custom-license-picked
Read license from file (take 2)
2018-11-30 19:01:25 +01:00
alex
8bc5e5f694 print error in default format
Co-Authored-By: jmccann <jmccann.git@gmail.com>
2018-11-30 11:25:11 -06:00
alex
ee8851987e print error in default format
Co-Authored-By: jmccann <jmccann.git@gmail.com>
2018-11-30 11:25:02 -06:00
Jacob McCann
9772e39228 update error prefix 2018-11-30 10:58:03 -06:00
Brad Rydzewski
c63d25f5fc custom license from file 2018-11-30 10:55:22 -06:00
alex
486fb589fd Merge pull request #13 from benma/master
add .jsx, .tsx files
2018-07-30 12:21:39 +02:00
Marko Bencun
30bcbce56d add .jsx, .tsx files 2018-07-30 11:49:02 +02:00
alex
f9cb8b9a1d Merge pull request #12 from google/xml-html
Better support for XML and HTML
2018-07-21 22:40:47 +02:00
alex
95943e310c Merge pull request #11 from google/trim-space
Trim trailing whitespace
2018-07-21 21:56:42 +02:00
alex
071b332aa8 Better support for XML and HTML
Keep <?xml and <!doctype declarations.
2018-07-21 16:57:39 +02:00
alex
6f621186c8 Trim trailing whitespace
If a license text had blank lines, they would result in a trailing
whitespace when prefixed with the line comments.

This change removes trailing whitespace from the middle lines,
leaving top and bottom as is.

Fixes #10
2018-07-21 16:24:29 +02:00
alex
fbdca00396 Removed unused CI config
We stopped using custom drone setup long time ago.
2018-07-21 15:35:56 +02:00
alex
92fecadfca readme: Google Inc. => LLC
The missing bit from https://github.com/google/addlicense/pull/9.
2018-07-21 15:32:53 +02:00
alex
b262c7e833 Add BSD license type to the usage in readme
The license was added in https://github.com/google/addlicense/pull/2
2018-07-21 15:31:53 +02:00
alex
a97ed9397e Merge pull request #8 from morgante/support_tf
Add support for Terraform files
2018-07-21 15:19:25 +02:00
alex
2c0d0d6bb4 Merge pull request #9 from morgante/change_default_name
Change default copyright holder to Google LLC
2018-07-21 15:18:53 +02:00
alex
8381c80934 Merge pull request #7 from wzshiming/dev
Added support for sql files
2018-07-21 15:18:07 +02:00
Morgante Pell
807bf143ce Change default copyright holder to Google LLC 2018-07-20 18:09:21 -04:00
Morgante Pell
76852768cb Add support for Terraform files 2018-07-20 18:06:44 -04:00
wzshiming
4f64a1cddf Added support for sql files 2018-07-18 13:31:05 +08:00
alex
6709751243 Merge pull request #3 from InfoSec812/support-yaml-files
Added support for YAML files with extensions of YML and YAML
2018-07-13 12:53:59 +02:00
alex
0194eb2e55 Merge pull request #2 from bradrydzewski/bsd
Add bsd license header
2018-07-13 12:52:44 +02:00
Deven Phillips
5c63b45c95 Added support for YAML files with extensions of YML and YAML 2018-03-16 12:39:06 -04:00
Brad Rydzewski
40c31bd566 added bsd license header 2017-12-07 15:36:14 -08:00
alex
04bf3e3e19 hook up CI 2016-06-27 12:07:56 +01:00
alex
6631c269a8 initial import 2016-06-27 12:03:58 +01:00