You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AGENTS.md
+6-3Lines changed: 6 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,14 +59,17 @@ All contributions generated or assisted by this agent must fully comply with:
59
59
60
60
## General Guidance
61
61
62
-
Every new file needs to get a SPDX header in the first rows according to this template.
63
-
The year in the first line must be replaced with the year when the file is created (for example, 2026 for files first added in 2026).
64
-
The commenting signs need to be used depending on the file type.
62
+
### License headers
63
+
64
+
Every new file must include the correct SPDX license header. For AGPL-2.0-or-later (the default for this repository):
65
65
66
66
```plaintext
67
67
SPDX-FileCopyrightText: <YEAR> Nextcloud GmbH and Nextcloud contributors
68
68
SPDX-License-Identifier: GPL-2.0-or-later
69
69
```
70
+
The commenting signs need to be used depending on the file type.
71
+
72
+
See [HowToApplyALicense.md](https://github.com/nextcloud/server/blob/master/contribute/HowToApplyALicense.md) for details on per-language formats. AI-generated code must not include material from sources incompatible with AGPL-2.0-or-later.
70
73
71
74
Avoid creating source files that implement multiple types; instead, place each type in its own dedicated source file.
0 commit comments