smanza
ExLicense - License header injector
Hello.
I have just published a new package named ex_license to manage license headers injection in the Elixir code source files.
While repositories can have a LICENSE file, nothing prevent someone to take a file and use it without restriction.
In other programming languages C, Go, … there are often tooling to inject headers of license but not in Elixir.
So this library embeds a mix task, to inject or to verify (usable in CI), to ensure an Elixir project maintains license headers.
To avoid the burden and uglify code file, it uses the SPDX convention which points a license with its ID
Thanks!
Most Liked
smanza
The initial goal of this lib was to be compliant with SPDX licence specification.
For instance in many code bases there is license header in top of each files as multi lines comments.
This helps to identify the license for this code if you don’t have the whole repo by checking the LICENSE file.
The SPDX spec tends to unify and standardize it while being simplier to apply into codebase. (Single line comment)
To get more info please check out the spec: https://spdx.dev/learn/handling-license-info/
jarlah
thanks I’m actually using it now. Even though im not sure if it’s needed to tag every source file with a license header for legal reasons. But it’s easier to see at least that its covered in the same license the repo is licensed under
jarlah
Yes. Thats why I bothered with it for my new project. If it was adding the license on top of each file, meh ..
Popular in Announcing
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









