Rustam Tagaev
dde9294ada
add amd64 for darwin
2024-04-10 19:13:15 +03:00
Rustam Tagaev
934ee84ed7
Merge pull request '[DO-169] add makefile and change golang version' ( #1 ) from feature/DO-169/add_build into master
...
Reviewed-on: https://git.avroid.tech/Tools/Addlicense/pulls/1
2024-04-10 18:48:34 +03:00
Rustam Tagaev
20fad8f28c
add makefile and change golang version
2024-04-10 18:47:03 +03:00
Stanislav Gabenov
65deee00fd
[DO-169] Modify to add template with Avroid license
2024-04-10 14:47:27 +03:00
Marc
4caba19b7e
Merge pull request #146 from sjswerdlow/j2Patch
...
Adding support for the j2 format.
2023-08-01 21:16:29 +01:00
sjswerdlow
183e474cde
Adding support for the j2 format. See: https://tedboy.github.io/jinja2/templ5.html
2023-07-25 16:24:50 +00:00
Marc
b10ac1c128
Merge pull request #145 from pmeric/patch-1
...
Support *.BUILD files
2023-06-13 22:23:46 +01:00
Marc
ef92449ebb
Merge branch 'master' into patch-1
2023-06-13 22:23:31 +01:00
Marc
729a481cea
Merge pull request #144 from kupiakos/master
...
Add support for TOML configuration files
2023-06-13 22:20:20 +01:00
Peter Meric
e88333e754
Support *.BUILD files
...
bazel build files for external repos -- eg. used in conjunction with `http_archive` -- are often named <repo>.BUILD
2023-05-26 17:28:19 -04:00
Alyssa Haroldsen
5c8c44041a
Add support for TOML configuration files
...
This is used in many contexts, including being the format used by
Cargo, the Rust package manager.
2023-04-11 19:14:34 -07:00
Jason Field
af4d9cf5dd
fix(readme): Update the docs to show current year
...
The default for `year` is actually the current year, so this will update the documentation to reflect that
2023-01-28 13:40:28 -08:00
Marc
dc31ac9ffc
Merge pull request #135 from XuehaiPan/fix-apache-spacing
...
fix: fix extra spacing in Apache License template
2023-01-18 13:27:11 +00:00
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
Anuraag Agrawal
04bfe4ee9c
Don't render extra space when year is not set
2022-08-26 08:00:37 -07:00
Muhammad Talal Anwar
09bb508a55
README: update usage options
2022-08-26 07:57:04 -07:00
Muhammad Talal Anwar
eadb73ac0d
Only log skipped files in verbose mode
2022-08-26 07:57:04 -07:00
Will Norris
6c3d2501f2
docs: provide simple example in README
2022-07-30 09:21:50 -07:00
bryanloz-xilinx
d40d757b7c
Update README.md
...
Previous documented command was providing docker folder mount option to addlicense as arguments... that was incorrect. Folder should be mounted before specifying the docker image to run.
2022-07-22 11:08:24 -07:00
Will Norris
13e73a7f8f
chore: bump action versions
...
I think this should fix the unicode import error in https://github.com/google/addlicense/actions/runs/2198105433
2022-04-21 16:21:41 -07:00
Will Norris
8cfc1b5425
chore: fix govet error on trailing newline
...
conversation in golang/go#18085 , but basically a single trailing newline
is a govet error, but two are not.
2022-04-21 16:21:41 -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
Will Norris
90da58c801
refactor: prep for additional licenseHeader logic
...
this refactors licenseHeader to make it easier to add additional logic
to determine prefix, beyond just file extension.
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
d1984d070c
docs: update go install instructions
...
Fixes #96
2021-10-02 09:57:31 -07:00
Will Norris
944049f284
docs: update docker instructions to include GitHub container registry
2021-08-17 06:31:36 -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
d43bb61fdf
docs: reflect minimum go version in README
2021-08-09 12:52:40 -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
058aeeb7be
build and publish release artifacts for git tags
2021-08-09 11:23:59 -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
Marc
ef04bb38a1
Merge pull request #82 from willnorris/docker
...
fix building docker image
2021-07-29 16:35:08 +01:00
Marc
0f8d403905
Merge pull request #81 from willnorris/actions
...
migrate CI to GitHub Actions
2021-07-29 07:38:33 +01:00
Will Norris
e59616150a
fix building docker image
...
Use go modules instead of dep. Use two stage build to build a minimal
(4 MB) application image.
Fixes #51 #71 #78
2021-07-27 23:25:45 -07:00
Will Norris
792e7a3462
migrate CI to GitHub Actions
...
use codecov.io to report on code coverage.
fix a few issues raised by golangci-lint
2021-07-27 22:11:04 -07:00
Marc
874627749a
Merge pull request #79 from willnorris/spdx
...
Add support for SPDX style headers
2021-07-27 18:44:09 +01:00
Will Norris
97ae522f98
add support for SPDX license headers
...
This adds a new "-s" flag that will append an SPDX-License-Identifier
line to license headers. If "-s=only" is specified, then only the SPDX
identifier will be used.
This also changes the "-l" flag to use SPDX identifiers, with mappings
to support the legacy "apache", "mit", and "mpl" values. Together with
the "-s" flag, this allows SPDX headers for any arbitrary license type
to be added to files.
Co-authored-by: Bob Callaway <bcallawa@redhat.com >
2021-07-26 20:43:15 -07:00
Will Norris
c2fdf83882
refactor template parsing logic
...
Move the logic for selecting a license template based on user input into
a standalone func (fetchTemplate), and add test cases for all code
paths.
Delay parsing predefined license templates. This allows the new
fetchTemplate method to modify these templates before returning in the
future (to add SPDX license information). Add tests to ensure that
these templates must always parse properly.
Rename copyrightData type to licenseData, since we will soon begin to
add more than just copyright data here (SPDX ID).
Rename prefix func to executeTemplate, since this better describes what
the function is doing.
These are all refactoring and cleanup changes; no behavioral changes.
2021-07-26 19:38:13 -07:00
Marc
6d92264d71
Merge pull request #75 from cpanato/skipfiles
...
Skip extensions or files
2021-04-28 20:56:30 +01:00
Carlos Panato
ab5e2b3095
skip extensions or files
2021-04-28 11:01:02 +02:00
Marc Cohen
a0294312aa
Merge pull request #44 from rotemreiss/docker-support
...
Add Docker support.
2020-09-06 12:09:28 +01:00
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