Skip to content

Commit 381a5e8

Browse files
committed
Introduce REUSE compliance
This commit introduces REUSE compliance by annotating all files with SPDX information and placing the reused licences in the LICENSES folder. We additionally removed the docheader tool which is made obsolete by this change. The main LICENSE and copyright text of the project is now not under my personal name anymore, and it belongs to "The Respect Project Contributors" instead. This change restores author names to several files, giving the appropriate attribution for contributions.
1 parent 3270c1f commit 381a5e8

File tree

1,090 files changed

+5040
-942
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,090 files changed

+5040
-942
lines changed

.docheader

Lines changed: 0 additions & 4 deletions
This file was deleted.

.github/workflows/continuous-integration-code.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,6 @@ jobs:
8484
- name: Install dependencies
8585
run: composer install --prefer-dist
8686

87-
- name: Run DocHeader
88-
run: vendor/bin/docheader check library/ tests/
89-
9087
- name: Run PHP_CodeSniffer
9188
run: vendor/bin/phpcs
9289

.github/workflows/reuse.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: REUSE
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- '*'
10+
11+
jobs:
12+
reuse-check:
13+
name: Compliance Check
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v6
18+
19+
- name: Set up Python
20+
uses: actions/setup-python@v6
21+
with:
22+
python-version: '3.x'
23+
24+
- name: Install REUSE tool
25+
run: pip install reuse
26+
27+
- name: Run REUSE check
28+
run: reuse lint

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
SPDX-FileCopyrightText: (c) Respect Project Contributors
3+
SPDX-License-Identifier: MIT
4+
-->
5+
16
# Changes in Respect\Validation 2.x
27

38
## 2.3

CONTRIBUTING.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
<!--
2+
SPDX-FileCopyrightText: (c) Respect Project Contributors
3+
SPDX-License-Identifier: MIT
4+
-->
5+
16
# Contributing
27

38
Contributions to Respect\Validation are always welcome. You make our lives
@@ -54,8 +59,9 @@ and will natively have support for chaining and everything else.
5459
<?php
5560

5661
/*
57-
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
5862
* SPDX-License-Identifier: MIT
63+
* SPDX-FileCopyrightText: (c) Respect Project Contributors
64+
* SPDX-FileContributor Your Name <your_email@example.com>
5965
*/
6066

6167
declare(strict_types=1);
@@ -96,8 +102,9 @@ first item of the arrays:
96102
<?php
97103

98104
/*
99-
* Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
100105
* SPDX-License-Identifier: MIT
106+
* SPDX-FileCopyrightText: (c) Respect Project Contributors
107+
* SPDX-FileContributor Your Name <your_email@example.com>
101108
*/
102109

103110
declare(strict_types=1);

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
3+
Copyright (c) Respect Project Contributors
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

LICENSES/CC-BY-4.0.txt

Lines changed: 156 additions & 0 deletions
Large diffs are not rendered by default.

LICENSES/MIT.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
MIT License
2+
3+
Copyright (c) <year> <copyright holders>
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
6+
associated documentation files (the "Software"), to deal in the Software without restriction, including
7+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
9+
following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in all copies or substantial
12+
portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
15+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
16+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
18+
USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)