Marc Cohen
d1655b9213
Merge pull request #52 from PiotrSikora/skip_generated_bzl
...
Skip .bzl files generated by cargo raze.
2020-08-27 10:13:14 +01:00
Piotr Sikora
73f8d3e793
Skip .bzl files generated by cargo raze.
...
Broken by #45 .
Signed-off-by: Piotr Sikora <piotrsikora@google.com >
2020-08-18 07:36:45 +00:00
Marc Cohen
6f4cd4aacc
Merge pull request #42 from tpryan/master
...
Adding support for SCSS and Sass files.
2020-08-17 06:19:35 +01:00
Marc Cohen
38d99b79c9
Merge pull request #43 from TomerAberbach/master
...
Support DOT files
2020-08-17 06:16:32 +01:00
Marc Cohen
4d786df136
Merge pull request #45 from fashing/master
...
Support Spanner schema and Skylark files.
2020-08-17 06:15:32 +01:00
Marc Cohen
144dc783ad
Merge branch 'master' into master
2020-08-17 06:15:11 +01:00
Marc Cohen
03fdaf6bea
Merge pull request #49 from ax3ghazy/master
...
{.tcl,.v,.sv} support
2020-08-17 06:06:13 +01:00
Marc Cohen
4295bd52e3
Merge pull request #41 from maruel/ignored
...
Skip generated files
2020-08-15 13:23:32 +01:00
Mark Fashing
82e1f9d7b8
Support Spanner schema and Skylark files.
...
Adds support for the .sdl file extension which is used for Spanner's
Schema Definition Language. It uses -- for comments in the manner of
.sql files.
Adds support for the .bzl file extension which is used for Bazel's
Starlark language. It uses # for comments in the manner of Python.
2020-07-28 14:15:54 -06:00
Ahmed Ghazy
a31a084d2c
{.tcl,.v,.sv} support
2020-07-25 21:46:31 +02:00
Tomer Aberbach
c4cb7c1b63
feat: support graphviz file extension
2020-07-04 00:10:47 -04:00
Terrence Ryan
e2ec6d07f7
Adding support for SCSS and Sass files.
2020-06-23 10:56:15 -07:00
Marc-Antoine Ruel
541722a254
Skip generated files
...
Ensure it skips for both check only mode and modification mode.
Fixes #39
2020-06-22 12:57:52 -04:00
Marc Cohen
df58acafd6
Merge pull request #40 from TomerAberbach/master
...
Add support for .mjs and .cjs JavaScript file extensions
2020-06-22 14:25:30 +01:00
Tomer Aberbach
3fa068400f
feat: add tests for new .mjs and .cjs file extensions
2020-04-25 20:47:44 -04:00
Tomer Aberbach
9f75d2be47
feat: support .mjs and .cjs javascript file extensions
2020-04-25 20:42:34 -04:00
Marc Cohen
68a83edd47
Merge pull request #35 from YangjingZhou/master
...
feat: add vue file type
2020-04-22 18:24:52 +01:00
Marc Cohen
474f49e7a1
Merge pull request #37 from timothyclifford/add-mpl-support
...
MPL license support
2020-04-22 18:23:22 +01:00
Tim Clifford
fb22319bcc
add support for MPL license
2020-04-14 21:20:33 +02:00
YangjingZhou
d5a1286c05
feat:add filetype vue
2020-03-20 09:53:37 +08:00
Marc Cohen
7c013a14f2
Merge pull request #33 from leilee/master
...
Fix typo
2020-03-01 09:51:09 +00:00
Lei
9db1a20351
Fix typo
2020-03-01 16:58:26 +08:00
alex
20ee99ff6a
Update .php handling to keep <?php at the top
...
Looking at https://www.php.net/manual/en/language.basic-syntax.phptags.php
there are just too many variations and I'm not convinced the added
complexity to support all of them would be worth it here.
Thus, support only the case where closing tag "?>" is either omitted
or on a separate line. A workaround for all other cases is to add
the license header manually.
Can always revisit this later.
2020-02-22 20:45:35 +01:00
alex
3db498291d
Merge pull request #29 from mithun/issue-28
...
Implement `-check` flag and exit codes
2020-02-22 10:56:26 +01: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
9fa18aaf59
Merge pull request #25 from tweksteen/add_verbose
...
Add verbose option to print filename when modified
2020-01-09 11:10:52 +01:00
Thiébaud Weksteen
fd1a812fc2
Add verbose option to print filename when modified
...
Adds the -v option which prints the name of the files that have been
modified.
2020-01-08 05:56:47 +01:00
alex
c6b7f1e7f3
Merge pull request #23 from frankfarzan/master
...
Support TypeScript files
2019-12-05 22:59:50 +01:00
Frank Farzan
d70fc5530d
Support TypeScript files
2019-12-05 13:43:45 -08:00
alex
be125746c2
Merge pull request #22 from ale64bit/master
...
Add OCaml files to list of accepted extensions
2019-09-07 13:31:43 +02:00
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