chore: transition to shorter license headers (#6)
Transition from the GPL jumpscare to a more concise header: /* * Vencord, a Discord client mod * Copyright (c) 2023 Vendicated and contributors * * SPDX-License-Identifier: GPL-3.0 */ Old files still keep the old headers, while eslint will now autofix the new header Reviewed-on: https://codeberg.org/Ven/cord/pulls/6 Co-authored-by: Rini <rini@rinici.de> Co-committed-by: Rini <rini@rinici.de>main
parent
1a62249da6
commit
8b6c8bc0ec
@ -0,0 +1,13 @@
|
||||
diff --git a/src/index.js b/src/index.js
|
||||
index e8a8ee34fbafe310c75e752d59ba3a56109d67f1..6aecfe40f863823c8b115bca00537fcd78934137 100644
|
||||
--- a/src/index.js
|
||||
+++ b/src/index.js
|
||||
@@ -95,7 +95,7 @@ function create(ctx) {
|
||||
?? [Array.isArray(options.text) ? options.text.join("\n") : options.text];
|
||||
|
||||
/** @type {string} */
|
||||
- const src = ctx.sourceCode.getText();
|
||||
+ const src = ctx.getSourceCode().getText();
|
||||
const srcHeader = findHeader(src, syntax);
|
||||
const headers = rawHeaders.map((raw) => makeComment(raw, syntax, decor));
|
||||
const trailingLines = "\n".repeat(src.slice(srcHeader.length).trim() ? 1 + newlines : 1);
|
@ -0,0 +1,3 @@
|
||||
Vencord, a Discord client mod
|
||||
Copyright (c) {year} {author}
|
||||
SPDX-License-Identifier: GPL-3.0-or-later
|
@ -0,0 +1,17 @@
|
||||
/*
|
||||
* Vencord, a modification for Discord's desktop app
|
||||
* Copyright (c) {year} {author}
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
Loading…
Reference in new issue