Skip to content

Commit 004494c

Browse files
Merge pull request #57 from go-gitea/main
Fork updates from go-gitea/gitea main
2 parents 1c0401f + e81ccc4 commit 004494c

File tree

1,953 files changed

+4106
-5648
lines changed

Some content is hidden

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

1,953 files changed

+4106
-5648
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ steps:
551551

552552
# TODO: We should probably build all dependencies into a test image
553553
- name: test-e2e
554-
image: mcr.microsoft.com/playwright:v1.27.1-focal
554+
image: mcr.microsoft.com/playwright:v1.28.0-focal
555555
commands:
556556
- curl -sLO https://go.dev/dl/go1.19.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.19.linux-amd64.tar.gz
557557
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea

.eslintrc.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ rules:
229229
no-empty-character-class: [2]
230230
no-empty-function: [0]
231231
no-empty-pattern: [2]
232+
no-empty-static-block: [2]
232233
no-empty: [2, {allowEmptyCatch: true}]
233234
no-eq-null: [2]
234235
no-eval: [2]
@@ -269,6 +270,7 @@ rules:
269270
no-negated-condition: [0]
270271
no-nested-ternary: [0]
271272
no-new-func: [2]
273+
no-new-native-nonconstructor: [2]
272274
no-new-object: [2]
273275
no-new-symbol: [2]
274276
no-new-wrappers: [2]
@@ -443,6 +445,7 @@ rules:
443445
unicorn/no-invalid-remove-event-listener: [2]
444446
unicorn/no-keyword-prefix: [0]
445447
unicorn/no-lonely-if: [2]
448+
unicorn/no-negated-condition: [0]
446449
unicorn/no-nested-ternary: [0]
447450
unicorn/no-new-array: [0]
448451
unicorn/no-new-buffer: [0]
@@ -453,6 +456,7 @@ rules:
453456
unicorn/no-static-only-class: [2]
454457
unicorn/no-thenable: [2]
455458
unicorn/no-this-assignment: [2]
459+
unicorn/no-typeof-undefined: [2]
456460
unicorn/no-unnecessary-await: [2]
457461
unicorn/no-unreadable-array-destructuring: [0]
458462
unicorn/no-unreadable-iife: [2]
@@ -503,6 +507,7 @@ rules:
503507
unicorn/prefer-regexp-test: [2]
504508
unicorn/prefer-replace-all: [0]
505509
unicorn/prefer-set-has: [0]
510+
unicorn/prefer-set-size: [2]
506511
unicorn/prefer-spread: [0]
507512
unicorn/prefer-starts-ends-with: [2]
508513
unicorn/prefer-string-slice: [0]

.stylelintrc.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
extends: stylelint-config-standard
22

3+
plugins:
4+
- stylelint-declaration-strict-value
5+
36
overrides:
47
- files: ["**/*.less"]
58
customSyntax: postcss-less
9+
- files: ["**/*.less"]
10+
rules:
11+
scale-unlimited/declaration-strict-value: [color, {
12+
ignoreValues: /^(inherit|transparent|unset|initial)$/
13+
}]
14+
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"]
15+
rules:
16+
scale-unlimited/declaration-strict-value: null
617

718
rules:
819
alpha-value-notation: null

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ Code that you contribute should use the standard copyright header:
440440

441441
```
442442
// Copyright 2022 The Gitea Authors. All rights reserved.
443-
// Use of this source code is governed by a MIT-style
444-
// license that can be found in the LICENSE file.
443+
// SPDX-License-Identifier: MIT
444+
445445
```
446446

447447
Files in the repository contain copyright from the year they are added

build.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Copyright 2020 The Gitea Authors. All rights reserved.
2-
// Use of this source code is governed by a MIT-style
3-
// license that can be found in the LICENSE file.
2+
// SPDX-License-Identifier: MIT
3+
44

55
//go:build vendor
66

build/code-batch-process.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright 2021 The Gitea Authors. All rights reserved.
2-
// Use of this source code is governed by a MIT-style
3-
// license that can be found in the LICENSE file.
2+
// SPDX-License-Identifier: MIT
43

54
//go:build ignore
65

build/codeformat/formatimports.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright 2021 The Gitea Authors. All rights reserved.
2-
// Use of this source code is governed by a MIT-style
3-
// license that can be found in the LICENSE file.
2+
// SPDX-License-Identifier: MIT
43

54
package codeformat
65

build/codeformat/formatimports_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright 2021 The Gitea Authors. All rights reserved.
2-
// Use of this source code is governed by a MIT-style
3-
// license that can be found in the LICENSE file.
2+
// SPDX-License-Identifier: MIT
43

54
package codeformat
65

build/generate-bindata.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// Copyright 2020 The Gitea Authors. All rights reserved.
2-
// Use of this source code is governed by a MIT-style
3-
// license that can be found in the LICENSE file.
2+
// SPDX-License-Identifier: MIT
43

54
//go:build ignore
65

build/generate-emoji.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright 2020 The Gitea Authors. All rights reserved.
22
// Copyright 2015 Kenneth Shaw
3-
// Use of this source code is governed by a MIT-style
4-
// license that can be found in the LICENSE file.
3+
// SPDX-License-Identifier: MIT
54

65
//go:build ignore
76

@@ -209,8 +208,8 @@ func generate() ([]byte, error) {
209208

210209
const hdr = `
211210
// Copyright 2020 The Gitea Authors. All rights reserved.
212-
// Use of this source code is governed by a MIT-style
213-
// license that can be found in the LICENSE file.
211+
// SPDX-License-Identifier: MIT
212+
214213
215214
package emoji
216215

0 commit comments

Comments
 (0)