diff --git a/.github/workflows/autoloader.yml b/.github/workflows/autoloader.yml index 3dfd9fd258..1a38b444ee 100644 --- a/.github/workflows/autoloader.yml +++ b/.github/workflows/autoloader.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT name: Autoload checker on: diff --git a/.github/workflows/command-rebase.yml b/.github/workflows/command-rebase.yml index ec95ccbbf4..08fb052852 100644 --- a/.github/workflows/command-rebase.yml +++ b/.github/workflows/command-rebase.yml @@ -2,6 +2,9 @@ # # https://github.com/nextcloud/.github # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization +# +# SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT name: Rebase command diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index a1c698232f..63f16e6ef5 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT name: Cypress on: diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index ed9eed4a1e..c2215b07e3 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT name: WOPI Integration tests on: diff --git a/.github/workflows/lint-eslint-when-unrelated.yml b/.github/workflows/lint-eslint-when-unrelated.yml index 7a2e9f0581..d74b12f6b6 100644 --- a/.github/workflows/lint-eslint-when-unrelated.yml +++ b/.github/workflows/lint-eslint-when-unrelated.yml @@ -5,7 +5,9 @@ # # Use lint-eslint together with lint-eslint-when-unrelated to make eslint a required check for GitHub actions # https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks - +# +# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT name: Lint eslint on: diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index b1d12f8932..4f7ea1e925 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -2,7 +2,9 @@ # # https://github.com/nextcloud/.github # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization - +# +# SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT name: Node on: diff --git a/.github/workflows/phpunit-summary-when-unrelated.yml b/.github/workflows/phpunit-summary-when-unrelated.yml index 484fdbb5bb..c2636dd762 100644 --- a/.github/workflows/phpunit-summary-when-unrelated.yml +++ b/.github/workflows/phpunit-summary-when-unrelated.yml @@ -2,7 +2,9 @@ # # https://github.com/nextcloud/.github # https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization - +# +# SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: MIT name: PHPUnit summary on: diff --git a/.reuse/dep5 b/.reuse/dep5 index 3198807b99..f14515e03d 100644 --- a/.reuse/dep5 +++ b/.reuse/dep5 @@ -11,7 +11,7 @@ Files: l10n/*.js l10n/*.json Copyright: 2016 Nextcloud contributors License: AGPL-3.0-or-later -Files: js/*.js.map js/*.js js/*.mjs js/*.mjs.map js/templates/*.handlebars emptyTemplates/* +Files: js/*.js.map js/*.js js/*.mjs js/*.mjs.map js/templates/*.handlebars emptyTemplates/* cypress/fixtures/* tests/features/*.feature Copyright: 2016 Nextcloud GmbH and Nextcloud contributors License: AGPL-3.0-or-later diff --git a/AUTHORS.md b/AUTHORS.md index 82d08a94c5..e79cccee50 100644 --- a/AUTHORS.md +++ b/AUTHORS.md @@ -4,6 +4,7 @@ --> # Authors +- Andrii Ilkiv - Caolán McNamara - Daniel Kesselberg - Elizabeth Danzberger @@ -14,6 +15,7 @@ - Lukas Reschke - Raul Ferreira Fuentes - Roeland Jago Douma +- Thomas Müller - Tor Lillqvist - Viktar Dubiniuk - Collabora Productivity. diff --git a/cypress/plugins/index.js b/cypress/plugins/index.js index 6e3915e6d5..9507c55835 100644 --- a/cypress/plugins/index.js +++ b/cypress/plugins/index.js @@ -11,6 +11,10 @@ // This function is called when a project is opened or re-opened (e.g. due to // the project's config changing) +/** + * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ const cypressSplit = require('cypress-split') const browserify = require('@cypress/browserify-preprocessor') const webpack = require('@cypress/webpack-preprocessor') diff --git a/tests/OCA/Richdocuments/Listener/AddFeaturePolicyListenerTest.php b/tests/OCA/Richdocuments/Listener/AddFeaturePolicyListenerTest.php index edab68c331..c358558b06 100644 --- a/tests/OCA/Richdocuments/Listener/AddFeaturePolicyListenerTest.php +++ b/tests/OCA/Richdocuments/Listener/AddFeaturePolicyListenerTest.php @@ -1,23 +1,7 @@ - * - * @author Julius Härtl - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace OCA\Richdocuments\Listener; diff --git a/tests/bootstrap.php b/tests/bootstrap.php index 2837726af9..738e1e2e01 100644 --- a/tests/bootstrap.php +++ b/tests/bootstrap.php @@ -1,5 +1,9 @@ +# SPDX-License-Identifier: AGPL-3.0-or-later # TODO: move this out of the repo to make it usable in other apps set -e diff --git a/tests/drone-server-setup.sh b/tests/drone-server-setup.sh index 2b01eeda0a..ab540f180b 100644 --- a/tests/drone-server-setup.sh +++ b/tests/drone-server-setup.sh @@ -1,10 +1,7 @@ #!/bin/bash # -# ownCloud -# -# @author Thomas Müller -# @copyright 2014 Thomas Müller thomas.mueller@tmit.eu -# +# SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: AGPL-3.0-or-later # TODO: move this out of the repo to make it usable in other apps diff --git a/tests/features/bootstrap/DirectContext.php b/tests/features/bootstrap/DirectContext.php index f0c6502463..c5ab32f339 100644 --- a/tests/features/bootstrap/DirectContext.php +++ b/tests/features/bootstrap/DirectContext.php @@ -1,28 +1,9 @@ - * - * @author Julius Härtl - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ - declare(strict_types=1); - +/** + * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ use Behat\Behat\Context\Context; use Behat\Behat\Hook\Scope\BeforeScenarioScope; diff --git a/tests/features/bootstrap/FederationContext.php b/tests/features/bootstrap/FederationContext.php index e498130690..579c1e5379 100644 --- a/tests/features/bootstrap/FederationContext.php +++ b/tests/features/bootstrap/FederationContext.php @@ -1,28 +1,10 @@ - * - * @author Julius Härtl - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ declare(strict_types=1); - +/** + * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ use Behat\Behat\Context\Context; use Behat\Behat\Hook\Scope\BeforeScenarioScope; diff --git a/tests/features/bootstrap/RichDocumentsContext.php b/tests/features/bootstrap/RichDocumentsContext.php index bdd20c6208..e20c858c3a 100644 --- a/tests/features/bootstrap/RichDocumentsContext.php +++ b/tests/features/bootstrap/RichDocumentsContext.php @@ -1,5 +1,8 @@ - * - * @author Julius Härtl - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * - */ declare(strict_types=1); - +/** + * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later + */ use Behat\Behat\Context\Context; use Behat\Behat\Hook\Scope\BeforeScenarioScope; diff --git a/tests/lib/AppConfigTest.php b/tests/lib/AppConfigTest.php index 5ae885babc..1f9296427f 100644 --- a/tests/lib/AppConfigTest.php +++ b/tests/lib/AppConfigTest.php @@ -1,24 +1,7 @@ - * - * @author Andrii Ilkiv - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * + * SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ namespace Tests\Richdocuments; diff --git a/tests/lib/Listener/AddContentSecurityPolicyListenerTest.php b/tests/lib/Listener/AddContentSecurityPolicyListenerTest.php index 13908360c0..514a94da5f 100644 --- a/tests/lib/Listener/AddContentSecurityPolicyListenerTest.php +++ b/tests/lib/Listener/AddContentSecurityPolicyListenerTest.php @@ -1,29 +1,10 @@ - * - * @author Julius Härtl - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * + * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ - use OC\Security\CSP\ContentSecurityPolicyManager; use OCA\Richdocuments\AppConfig; use OCA\Richdocuments\Listener\AddContentSecurityPolicyListener; diff --git a/tests/lib/Middleware/WOPIMiddlewareTest.php b/tests/lib/Middleware/WOPIMiddlewareTest.php index 4d7ed26ab8..ffbbcb539e 100644 --- a/tests/lib/Middleware/WOPIMiddlewareTest.php +++ b/tests/lib/Middleware/WOPIMiddlewareTest.php @@ -1,29 +1,10 @@ - * - * @author Julius Härtl - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . + * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ - - namespace OCA\Richdocuments\Middleware; use OCA\Richdocuments\Db\WopiMapper; diff --git a/tests/lib/PermissionManagerTest.php b/tests/lib/PermissionManagerTest.php index 357ebcb2cd..657767286a 100644 --- a/tests/lib/PermissionManagerTest.php +++ b/tests/lib/PermissionManagerTest.php @@ -1,26 +1,8 @@ - * - * @author Andrii Ilkiv - * - * @license GNU AGPL version 3 or any later version - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Affero General Public License as - * published by the Free Software Foundation, either version 3 of the - * License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU Affero General Public License for more details. - * - * You should have received a copy of the GNU Affero General Public License - * along with this program. If not, see . - * + * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ - namespace Tests\Richdocuments; use OCA\Richdocuments\AppConfig; diff --git a/tests/phpunit.xml b/tests/phpunit.xml index 9b99baf28d..1be43aa4c7 100644 --- a/tests/phpunit.xml +++ b/tests/phpunit.xml @@ -1,4 +1,9 @@ + diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 8a02919953..e14f949556 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -1,4 +1,8 @@ + diff --git a/tests/run-integration.sh b/tests/run-integration.sh index b3e4e7eedd..4f09302398 100755 --- a/tests/run-integration.sh +++ b/tests/run-integration.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash - +# +# SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors +# SPDX-License-Identifier: AGPL-3.0-or-later set -e OC_PATH=../../../ diff --git a/tests/stub.phpstub b/tests/stub.phpstub index 9dda632f24..55ae13a41a 100644 --- a/tests/stub.phpstub +++ b/tests/stub.phpstub @@ -1,7 +1,10 @@