Commit Graph

10 Commits

Author SHA1 Message Date
Tomer Aberbach
c4cb7c1b63 feat: support graphviz file extension 2020-07-04 00:10:47 -04:00
Tomer Aberbach
3fa068400f feat: add tests for new .mjs and .cjs file extensions 2020-04-25 20:47:44 -04: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
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
f9cb8b9a1d Merge pull request #12 from google/xml-html
Better support for XML and HTML
2018-07-21 22:40:47 +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
Morgante Pell
76852768cb Add support for Terraform files 2018-07-20 18:06:44 -04:00
alex
6631c269a8 initial import 2016-06-27 12:03:58 +01:00