Skip to content

Commit 14edf2d

Browse files
feat: add SPDX headers
Signed-off-by: Luka Trovic <[email protected]>
1 parent 6f35408 commit 14edf2d

Some content is hidden

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

82 files changed

+409
-18
lines changed

.github/dependabot.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
14
version: 2
25
updates:
36
- package-ecosystem: composer

.github/pr-feedback.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
2+
# SPDX-License-Identifier: AGPL-3.0-or-later
3+
14
ame: 'Ask for feedback on PRs'
25
on:
36
schedule:

.github/workflows/lint.yml

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# This workflow is provided via the organization template repository
2+
#
3+
# https://github.com/nextcloud/.github
4+
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
8+
19
name: Lint
210
on:
311
push:

.github/workflows/test.yml

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
# This workflow is provided via the organization template repository
2+
#
3+
# https://github.com/nextcloud/.github
4+
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization
5+
#
6+
# SPDX-FileCopyrightText: 2020-2024 Nextcloud GmbH and Nextcloud contributors
7+
# SPDX-License-Identifier: MIT
8+
19
name: Test
210
on:
311
push:

appinfo/info.xml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
- SPDX-FileCopyrightText: 2013-2024 Nextcloud GmbH and Nextcloud contributors
4+
- SPDX-License-Identifier: AGPL-3.0-or-later
5+
-->
26
<info xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://apps.nextcloud.com/schema/apps/info.xsd">
37
<id>notes</id>
48
<name>Notes</name>

appinfo/routes.php

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
<?php
22

3+
/**
4+
* SPDX-FileCopyrightText: 2013 Nextcloud GmbH and Nextcloud contributors
5+
* SPDX-License-Identifier: AGPL-3.0-or-later
6+
*/
7+
38
return ['routes' => [
49
////////// P A G E //////////
510
[

babel.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -1 +1,6 @@
1+
/**
2+
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
16
module.exports = require('@nextcloud/babel-config')

css/global.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
16
.icon-notes {
27
background-image: url(../img/notes-dark.svg);
38
filter: var(--background-invert-if-dark);

css/notes.css

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* SPDX-FileCopyrightText: 2013 Nextcloud GmbH and Nextcloud contributors
3+
* SPDX-License-Identifier: AGPL-3.0-or-later
4+
*/
5+
16
/* workaround for https://github.com/nextcloud/nextcloud-vue/issues/1384 */
27
body {
38
min-height: 100%;

lib/AppInfo/Application.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\AppInfo;
611

712
use OCP\AppFramework\App;

lib/AppInfo/BeforeShareCreatedListener.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\AppInfo;
611

712
use OCA\Notes\Service\NoteUtil;

lib/AppInfo/BeforeTemplateRenderedListener.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\AppInfo;
611

712
use OCP\AppFramework\Http\Events\BeforeTemplateRenderedEvent;

lib/AppInfo/Capabilities.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\AppInfo;
611

712
use OCP\App\IAppManager;

lib/AppInfo/DashboardWidget.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\AppInfo;
611

712
use OCA\Notes\Service\Note;

lib/AppInfo/NotesHooks.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\AppInfo;
611

712
use OCA\Notes\Service\MetaService;

lib/AppInfo/SearchProvider.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\AppInfo;
611

712
use OCA\Notes\Service\Note;

lib/Controller/ChunkCursor.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Controller;
611

712
use OCA\Notes\Service\MetaNote;

lib/Controller/ETagDoesNotMatchException.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Controller;
611

712
use Exception;

lib/Controller/Helper.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Controller;
611

712
use OCA\Notes\AppInfo\Application;

lib/Controller/NotesApiController.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2013 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Controller;
611

712
use OCA\Notes\Service\MetaNote;

lib/Controller/NotesController.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2013 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Controller;
611

712
use OCA\Notes\Service\Note;

lib/Controller/PageController.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2013 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Controller;
611

712
use OCA\Files\Event\LoadSidebar;

lib/Controller/SettingsController.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Controller;
611

712
use OCA\Notes\Service\SettingsService;

lib/Db/Meta.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Db;
611

712
use OCP\AppFramework\Db\Entity;

lib/Db/MetaMapper.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Db;
611

712
use OCP\AppFramework\Db\QBMapper;

lib/Migration/Cleanup.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Migration;
611

712
use OCA\Notes\Db\MetaMapper;

lib/Migration/EditorHint.php

+2-18
Original file line numberDiff line numberDiff line change
@@ -3,24 +3,8 @@
33
declare(strict_types=1);
44

55
/**
6-
* @copyright Copyright (c) 2023 Julius Härtl <[email protected]>
7-
*
8-
* @author Julius Härtl <[email protected]>
9-
*
10-
* @license GNU AGPL version 3 or any later version
11-
*
12-
* This program is free software: you can redistribute it and/or modify
13-
* it under the terms of the GNU Affero General Public License as
14-
* published by the Free Software Foundation, either version 3 of the
15-
* License, or (at your option) any later version.
16-
*
17-
* This program is distributed in the hope that it will be useful,
18-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20-
* GNU Affero General Public License for more details.
21-
*
22-
* You should have received a copy of the GNU Affero General Public License
23-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
6+
* SPDX-FileCopyrightText: 2023 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
248
*/
259

2610

lib/Migration/Version3005Date20200528204430.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Migration;
611

712
use Closure;

lib/Migration/Version3005Date20200528204431.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Migration;
611

712
use Closure;

lib/Service/ImageNotWritableException.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2013 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Service;
611

712
use Exception;

lib/Service/InsufficientStorageException.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Service;
611

712
use Exception;

lib/Service/MetaNote.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Service;
611

712
use OCA\Notes\Db\Meta;

lib/Service/MetaService.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Service;
611

712
use OCA\Notes\Db\Meta;

lib/Service/Note.php

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
declare(strict_types=1);
44

5+
/**
6+
* SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
7+
* SPDX-License-Identifier: AGPL-3.0-or-later
8+
*/
9+
510
namespace OCA\Notes\Service;
611

712
use OCP\Files\File;

0 commit comments

Comments
 (0)