Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Formally allow using .license files with Commentable Files #123

Merged
merged 3 commits into from
Mar 6, 2023

Conversation

Jayman2000
Copy link
Contributor

See individual commit messages for details.

Fixes #122.

@silverhook
Copy link
Collaborator

LGTM

Copy link
Member

@carmenbianca carmenbianca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Jayman2000 and others added 3 commits March 6, 2023 16:53
Before this change, the explanation of comment headers and .license was
rather verbose because there was no concise way to say “plain text file
that can contain comments” or “not a plain text file or does not permit
the inclusion of comments”. This change adds terms to the glossary so
that the explanations of comment headers and .license files could be
shortened.

In the next commit, I’m going to add another reference to Commentable
Files. That’s the main motivation behind this change. I want to be able
to talk about Commentable Files without having to repeat the phrase
“plain text file that can contain comments”.
Dave Winer’s Rules for standards-makers says “If practice deviates from
the spec, change the spec” [1]. If a spec says to do one thing but
everyone does something else, then that rule in the spec is more of a
distraction then anything else.

Before this change, the REUSE Spec said “To implement this method, each
Commentable File MUST contain comments at the top of the file (comment
header) that declare that file's Copyright and Licensing Information.”
As far as I know, there’s no piece of software that actually enforces
that requirement.

For example, try running “reuse lint” on this repository:
<https://github.com/Jayman2000/reuse-compliance-test>. The REUSE Tool
will tell you that you’re compliant with the REUSE Spec, even though
there’s a .py.license file (The Python file itself could have just
contained a comment header).

This change aligns the REUSE Spec with actual practice by making this
requirement a SHOULD instead of a MUST. For the avoidance of doubt, this
change also explicitly says that “.license files MAY be used with
Commentable Files”.

The phrase “but it is still RECOMMENDED that comment headers be put
inside Commentable Files” was inspired by this comment:
<fsfe#122 (comment)>

Fixes fsfe#122.

[1]: <http://scripting.com/2017/05/09/rulesForStandardsmakers.html>
@mxmehl mxmehl force-pushed the comment-header-MUST-to-SHOULD branch from dbe5f13 to 4a19902 Compare March 6, 2023 15:59
Copy link
Member

@mxmehl mxmehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LTGM, thanks!

I just rebased and added a changelog entry.

@mxmehl mxmehl merged commit d5dfa58 into fsfe:main Mar 6, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Spec’s comment header rule isn’t followed or enforced
4 participants