Skip to content

Commit f0210f4

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 f0210f4

File tree

1,093 files changed

+5058
-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,093 files changed

+5058
-942
lines changed

.docheader

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

.github/dependabot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: (c) Respect Project Contributors
2+
# SPDX-License-Identifier: MIT
3+
14
version: 2
25
updates:
36

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: (c) Respect Project Contributors
2+
# SPDX-License-Identifier: MIT
3+
14
name: Continuous Integration (code)
25

36
on:
@@ -84,9 +87,6 @@ jobs:
8487
- name: Install dependencies
8588
run: composer install --prefer-dist
8689

87-
- name: Run DocHeader
88-
run: vendor/bin/docheader check library/ tests/
89-
9090
- name: Run PHP_CodeSniffer
9191
run: vendor/bin/phpcs
9292

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: (c) Respect Project Contributors
2+
# SPDX-License-Identifier: MIT
3+
14
name: Continuous Integration (docs)
25

36
on:

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: (c) Respect Project Contributors
2+
# SPDX-License-Identifier: MIT
3+
14
name: Release
25

36
on: push

.github/workflows/reuse.yml

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

.github/workflows/update-regionals.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: (c) Respect Project Contributors
2+
# SPDX-License-Identifier: MIT
3+
14
name: Update Regional Information
25

36
on:

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

0 commit comments

Comments
 (0)