Skip to content
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 in to your account

Simplify logic and allow any SPDX header by default #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dmyersturnbull
Copy link

As a user, I found the inclusion of author confusing, and I had to check the code to see how it gets included. I think it might be simpler if the regex is the only parameter. There is a common recommendation to just list the authors as "The Authors" or "Contributors to " anyway, both for legal reasons (sometimes who actually holds the copyright would be decided in court), because lots more people than the authors could hold part of the copyright, because you'd have to update the header if the authors change, and because it's not necessary.

While I was at it, I also set the default min length to 1024, closed the open file handle, dropped the unnecessary encoding header, and included any SPDX- header in the default regex.

As a user, I found the inclusion of _author_ confusing, and I had to check the code to see how it gets included. I think it might be simpler if the regex is the only parameter. There is a common recommendation to just list the authors as "The Authors" or "Contributors to <Project>" anyway, both for legal reasons (sometimes who actually holds the copyright would be decided in court), because lots more people than the authors could hold part of the copyright, because you'd have to update the header if the authors change, and because it's not necessary.

While I was at it, I also set the default min length to 1024, closed the open file handle, dropped the unnecessary encoding header, and included any `SPDX-` header in the default regex.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant