-
Notifications
You must be signed in to change notification settings - Fork 162
addheader should recognise file extensions that *require* .license files #189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign 8000 in to your account
Comments
What would be a neat way to achieve this? Can there be a similar map like |
Regarding your last question, this happens via I am not sure whether we would come around adding file extensions manually. I am not aware of a list for such files. |
Alright, looking at the code, it makes sense to have an additional comment style which equates to I hope my worded PR is clear enough 😄 Either way I now have an idea how to implement this. But other suggestions are welcome. |
A better Python programmer than I am would probably understand this better, but I think I can follow your argumentation well enough, thanks :) |
Previously, only binary files were handled as uncommentable [0]. For other files the "--explicit-license" flag has to be set explicitly. However, there are also text files which are uncommentable. This commit / pull request introduces support for a new pseudo comment style for uncommentable text files. One use case is, for example, Golang's go.sum file. Hashes of the referenced modules are listed there, but without any special header [1]. Thus it is not possible to add an SPDX header. However, this file cannot be omitted. Whether the file is to be ignored license-wise was addressed in a previous pull request [2], but not clarified. Another prominent use case might be JSON files, which also cannot contain comments or headers. This was also discussed before [3]. With the changes introduced here, this file is recognized as uncommentable and a .license file is created. [0] https://reuse.software/tutorial/#binary-and-uncommentable-files [1] https://blog.golang.org/using-go-modules [2] fsfe#234 [3] fsfe#189
e.g., .json.
The text was updated successfully, but these errors were encountered: