ankidroid / ankidroid/Anki-Android

Move to SPDX for file-level license headers (mono-license GPL/LGPL only)

Đang mở
#20,954 2 bình luận 0 reaction 1 người được giao Được @david-allison nhận Xem trên GitHub
cleanup Keep Open
Ngôn ngữ chính
Kotlin
Star
11.8k
Fork
2.9k
Merge trung bình
2 ngày 3 giờ
Pull request đã merge (30 ngày)
171

Mô tả

My original rationale was that LLMs would be inflating the token count, but it's also 'cleaner' from a code perspective, and makes reviews easier.

- readable
- spec language

```diff
+// SPDX-License-Identifier: GPL-3.0-or-later
+// Copyright (c) 2025 David Allison
-/*
- * Copyright (c) 2025 David Allison
- *
- * This program is free software; you can redistribute it and/or modify it under
- * the terms of the GNU 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 General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see .
- */
```

EDIT: copyright is now optional - https://github.com/ankidroid/Anki-Android/blob/main/docs/contributing/copyright-headers.md

```diff
+ // SPDX-License-Identifier: GPL-3.0-or-later
- // Copyright (c) 2025 David Allison
```

This issue will be completed when all mono-licensed files use SPDX.

----

**Future extensions**

* Handle multi-licensed files
* Mono-licensed files are the majority of the codebase. We are time-limited, and deviations can be handled on a case-by-case basis
* This issue exists to streamline the code submission process, not as a full SPDX implementation
- [x] Make copyright headers optional

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.