Skip to content

Commit

Permalink
set all files REUSE compliant
Browse files Browse the repository at this point in the history
for some reasons the .gitignore entries are ignored by reuse tool
so I have to put them into .reuse/deb5 file
  • Loading branch information
Art4 committed Oct 13, 2023
1 parent 25862b4 commit 6d286c9
Show file tree
Hide file tree
Showing 24 changed files with 65 additions and 57 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
# SPDX-License-Identifier: GPL-3.0-or-later

/.docker export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
Expand Down
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
.idea
.php-cs-fixer.cache
.phpunit.cache
composer.phar
composer.lock
php-cs-fixer.phar
vendor
4 changes: 4 additions & 0 deletions .php-cs-fixer.dist.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?php

// SPDX-FileCopyrightText: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
//
// SPDX-License-Identifier: GPL-3.0-or-later

$finder = (new PhpCsFixer\Finder())
->in('src')
->in('tests')
Expand Down
3 changes: 3 additions & 0 deletions .phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
# SPDX-License-Identifier: GPL-3.0-or-later

parameters:
level: 8

Expand Down
53 changes: 50 additions & 3 deletions .reuse/dep5
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,57 @@ Source: https://github.com/Art4/json-api-client
# Copyright: $YEAR $NAME <$CONTACT>
# License: ...

Files: src/*
Files: .docker/*
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: tests/*
Files: .github/*
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later
License: GPL-3.0-or-later

Files: .gitignore
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: CHANGELOG.md
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: composer.json
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: composer.lock
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: docs/*
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: phpunit.xml
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: README.md
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: tests/files/*
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

# Ignore following folders
# for some reason reuse does not ignore files definded in .gitignore

Files: .phpunit.cache/*
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: .php-cs-fixer.cache
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later

Files: vendor/*
Copyright: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
License: GPL-3.0-or-later
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
"coverage": "phpunit --coverage-html=\".phpunit.cache/code-coverage\"",
"phpstan": "phpstan analyze --memory-limit 512M --configuration .phpstan.neon",
"phpunit": "phpunit",
"reuse-annotate": "pipx run reuse annotate src tests --license=\"GPL-3.0-or-later\" --copyright=\"2015-2023 Artur Weigandt https://wlabs.de/kontakt\" --recursive --exclude-year --copyright-style=\"spdx\""
"reuse-annotate": "pipx run reuse annotate src tests --license=\"GPL-3.0-or-later\" --copyright=\"2015-2023 Artur Weigandt https://wlabs.de/kontakt\" --recursive --exclude-year --copyright-style=\"spdx\"",
"reuse-lint": "pipx run reuse --suppress-deprecation lint"
},
"config": {
"sort-packages": true
Expand Down
3 changes: 3 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# SPDX-FileCopyrightText: 2015-2023 Artur Weigandt https://wlabs.de/kontakt
# SPDX-License-Identifier: GPL-3.0-or-later

version: "3.7"

services:
Expand Down
3 changes: 0 additions & 3 deletions tests/files/01_simple_resource.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/02_simple_resource_identifier.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/03_resource_object.json.license

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/05_simple_meta_object.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/06_pagination_example.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/07_relationship_example_without_data.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/08_object_links.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/09_errors.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/10_error_with_links.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/11_resource_identifier_with_meta.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/12_null_resource.json.license

This file was deleted.

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/14_create_resource_without_id.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/15_create_resource_without_id.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/16_type_and_id_as_integer.json.license

This file was deleted.

3 changes: 0 additions & 3 deletions tests/files/17_relationship_links.json.license

This file was deleted.

0 comments on commit 6d286c9

Please sign in to comment.