Skip to content

Commit 9b93d30

Browse files
author
Gusted
committed
Merge branch 'main' into private-comments
2 parents 241d735 + 814750e commit 9b93d30

File tree

8,004 files changed

+39198
-2630855
lines changed

Some content is hidden

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

8,004 files changed

+39198
-2630855
lines changed

.drone.yml

+352-104
Large diffs are not rendered by default.

.eslintrc

+8-24
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ plugins:
1313
- eslint-plugin-import
1414
- eslint-plugin-vue
1515
- eslint-plugin-html
16-
- eslint-plugin-github
1716

1817
extends:
1918
- plugin:vue/recommended
@@ -24,10 +23,6 @@ env:
2423

2524
globals:
2625
__webpack_public_path__: true
27-
CodeMirror: false
28-
Dropzone: false
29-
SimpleMDE: false
30-
u2fApi: false
3126

3227
settings:
3328
html/html-extensions: [".tmpl"]
@@ -36,7 +31,6 @@ overrides:
3631
- files: ["web_src/**/*.js", "web_src/**/*.vue", "templates/**/*.tmpl"]
3732
env:
3833
browser: true
39-
jquery: true
4034
node: false
4135
- files: ["templates/**/*.tmpl"]
4236
rules:
@@ -97,23 +91,6 @@ rules:
9791
function-paren-newline: [0]
9892
generator-star-spacing: [0]
9993
getter-return: [2]
100-
github/array-foreach: [2]
101-
github/async-currenttarget: [2]
102-
github/async-preventdefault: [2]
103-
github/authenticity-token: [0]
104-
github/get-attribute: [2]
105-
github/js-class-name: [0]
106-
github/no-blur: [0]
107-
github/no-d-none: [0]
108-
github/no-dataset: [2]
109-
github/no-implicit-buggy-globals: [0]
110-
github/no-inner-html: [0]
111-
github/no-innerText: [2]
112-
github/no-then: [0]
113-
github/no-useless-passive: [2]
114-
github/prefer-observers: [0]
115-
github/require-passive-events: [2]
116-
github/unescaped-html-literal: [0]
11794
grouped-accessor-pairs: [2]
11895
guard-for-in: [0]
11996
id-blacklist: [0]
@@ -302,6 +279,7 @@ rules:
302279
no-unsafe-negation: [2]
303280
no-unused-expressions: [2]
304281
no-unused-labels: [2]
282+
no-unused-private-class-members: [2]
305283
no-unused-vars: [2, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, caughtErrorsIgnorePattern: ^_, ignoreRestSiblings: false}]
306284
no-use-before-define: [2, nofunc]
307285
no-useless-backreference: [0]
@@ -334,6 +312,7 @@ rules:
334312
prefer-exponentiation-operator: [2]
335313
prefer-named-capture-group: [0]
336314
prefer-numeric-literals: [2]
315+
prefer-object-has-own: [0]
337316
prefer-object-spread: [0]
338317
prefer-promise-reject-errors: [2, {allowEmptyReject: false}]
339318
prefer-regex-literals: [2]
@@ -380,7 +359,7 @@ rules:
380359
unicorn/import-style: [0]
381360
unicorn/new-for-builtins: [2]
382361
unicorn/no-abusive-eslint-disable: [0]
383-
unicorn/no-array-for-each: [0]
362+
unicorn/no-array-for-each: [2]
384363
unicorn/no-array-instanceof: [0]
385364
unicorn/no-array-method-this-argument: [2]
386365
unicorn/no-array-push-push: [2]
@@ -402,12 +381,14 @@ rules:
402381
unicorn/no-process-exit: [0]
403382
unicorn/no-reduce: [2]
404383
unicorn/no-static-only-class: [2]
384+
unicorn/no-thenable: [2]
405385
unicorn/no-this-assignment: [2]
406386
unicorn/no-unreadable-array-destructuring: [0]
407387
unicorn/no-unsafe-regex: [0]
408388
unicorn/no-unused-properties: [2]
409389
unicorn/no-useless-fallback-in-spread: [2]
410390
unicorn/no-useless-length-check: [2]
391+
unicorn/no-useless-promise-resolve-reject: [2]
411392
unicorn/no-useless-spread: [2]
412393
unicorn/no-useless-undefined: [0]
413394
unicorn/no-zero-fractions: [2]
@@ -427,6 +408,7 @@ rules:
427408
unicorn/prefer-event-key: [2]
428409
unicorn/prefer-export-from: [2]
429410
unicorn/prefer-includes: [2]
411+
unicorn/prefer-json-parse-buffer: [0]
430412
unicorn/prefer-math-trunc: [2]
431413
unicorn/prefer-modern-dom-apis: [0]
432414
unicorn/prefer-module: [2]
@@ -454,11 +436,13 @@ rules:
454436
unicorn/prefer-trim-start-end: [2]
455437
unicorn/prefer-type-error: [0]
456438
unicorn/prevent-abbreviations: [0]
439+
unicorn/relative-url-style: [2]
457440
unicorn/require-array-join-separator: [2]
458441
unicorn/require-number-to-fixed-digits-argument: [2]
459442
unicorn/require-post-message-target-origin: [0]
460443
unicorn/string-content: [0]
461444
unicorn/template-indent: [2]
445+
unicorn/text-encoding-identifier-case: [0]
462446
unicorn/throw-new-error: [2]
463447
use-isnan: [2]
464448
valid-typeof: [2, {requireStringLiterals: true}]

.gitattributes

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
* text=auto eol=lf
2-
/vendor/** -text -eol linguist-vendored
3-
/public/vendor/** -text -eol linguist-vendored
4-
/templates/**/*.tmpl linguist-language=Handlebars
2+
*.tmpl linguist-language=Handlebars
53
/.eslintrc linguist-language=YAML
64
/.stylelintrc linguist-language=YAML
5+
/public/vendor/** -text -eol linguist-vendored
6+
/vendor/** -text -eol linguist-vendored
77
/web_src/fomantic/build/** linguist-generated
8+
/web_src/js/vendor/** -text -eol linguist-vendored
9+
Dockerfile.* linguist-language=Dockerfile

.github/ISSUE_TEMPLATE/bug-report.yaml

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Bug Report
2-
description: Found something you weren't expecting? Report it here!
2+
description: Found something you weren't expecting? Report it here!
33
body:
44
- type: markdown
55
attributes:
@@ -11,15 +11,19 @@ body:
1111
1. Please speak English, this is the language all maintainers can speak and write.
1212
2. Please ask questions or configuration/deploy problems on our Discord
1313
server (https://discord.gg/gitea) or forum (https://discourse.gitea.io).
14-
3. Please take a moment to check that your issue doesn't already exist.
14+
3. Make sure you are using the latest release and
15+
take a moment to check that your issue hasn't been reported before.
1516
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
1617
5. Please give all relevant information below for bug reports, because
1718
incomplete details will be handled as an invalid report.
19+
6. In particular it's really important to provide pertinent logs. You must give us DEBUG level logs.
20+
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
21+
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
1822
- type: input
1923
id: gitea-ver
2024
attributes:
2125
label: Gitea Version
22-
description: Gitea version (or commit reference) your instance is running
26+
description: Gitea version (or commit reference) of your instance
2327
validations:
2428
required: true
2529
- type: input
@@ -37,8 +41,8 @@ body:
3741
attributes:
3842
label: How are you running Gitea?
3943
description: |
40-
Please include information on whether you built gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
41-
Please also tell us how you are running gitea, e.g. if it is being run from docker, a command-line, systemd etc.
44+
Please include information on whether you built Gitea yourself, used one of our downloads, are using https://try.gitea.io or are using some other package
45+
Please also tell us how you are running Gitea, e.g. if it is being run from docker, a command-line, systemd etc.
4246
If you are using a package or systemd tell us what distribution you are using
4347
validations:
4448
required: true
@@ -67,7 +71,7 @@ body:
6771
- type: markdown
6872
attributes:
6973
value: |
70-
It really is important to provide pertinent logs
74+
It's really important to provide pertinent logs
7175
Please read https://docs.gitea.io/en-us/logging-configuration/#debugging-problems
7276
In addition, if your problem relates to git commands set `RUN_MODE=dev` at the top of app.ini
7377
- type: input
@@ -81,9 +85,9 @@ body:
8185
label: Description
8286
description: |
8387
Please provide a description of your issue here, with a URL if you were able to reproduce the issue (see above)
84-
If using a proxy or a CDN (e.g. CloudFlare) in front of gitea, please disable the proxy/CDN fully and connect to gitea directly to confirm the issue still persists without those services.
88+
If you are using a proxy or a CDN (e.g. Cloudflare) in front of Gitea, please disable the proxy/CDN fully and access Gitea directly to confirm the issue still persists without those services.
8589
- type: textarea
8690
id: screenshots
8791
attributes:
8892
label: Screenshots
89-
description: If this issue involves the Web Interface, please provide a screenshot or multiple screenshots
93+
description: If this issue involves the Web Interface, please provide one or more screenshots

.github/ISSUE_TEMPLATE/ui.bug-report.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ body:
1515
4. Make sure it's not mentioned in the FAQ (https://docs.gitea.io/en-us/faq)
1616
5. Please give all relevant information below for bug reports, because
1717
incomplete details will be handled as an invalid report.
18+
6. In particular it's really important to provide pertinent logs. If you are certain that this is a javascript
19+
error, show us the javascript console. If the error appears to relate to Gitea the server you must also give us
20+
DEBUG level logs. (See https://docs.gitea.io/en-us/logging-configuration/#debugging-problems)
1821
- type: input
1922
id: gitea-ver
2023
attributes:

.github/pull_request_template.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Please check the following:
44
55
1. Make sure you are targeting the `main` branch, pull requests on release branches are only allowed for bug fixes.
6-
2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/master/CONTRIBUTING.md
6+
2. Read contributing guidelines: https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
77
3. Describe what your pull request does and which issue you're targeting (if any)
88
99
-->

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ _testmain.go
3636
coverage.all
3737
cpu.out
3838

39+
/modules/migration/bindata.go
40+
/modules/migration/bindata.go.hash
3941
/modules/options/bindata.go
4042
/modules/options/bindata.go.hash
4143
/modules/public/bindata.go
@@ -85,6 +87,7 @@ cpu.out
8587
/public/css
8688
/public/fonts
8789
/public/img/webpack
90+
/vendor
8891
/web_src/fomantic/node_modules
8992
/web_src/fomantic/build/*
9093
!/web_src/fomantic/build/semantic.js

.golangci.yml

+37
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,55 @@ linters:
1616
- gocritic
1717
- bidichk
1818
- ineffassign
19+
- revive
20+
- gofumpt
1921
enable-all: false
2022
disable-all: true
2123
fast: false
2224

2325
run:
2426
timeout: 3m
27+
skip-dirs:
28+
- node_modules
29+
- public
30+
- web_src
2531

2632
linters-settings:
2733
gocritic:
2834
disabled-checks:
2935
- ifElseChain
3036
- singleCaseSwitch # Every time this occurred in the code, there was no other way.
37+
revive:
38+
ignore-generated-header: false
39+
severity: warning
40+
confidence: 0.8
41+
errorCode: 1
42+
warningCode: 1
43+
rules:
44+
- name: blank-imports
45+
- name: context-as-argument
46+
- name: context-keys-type
47+
- name: dot-imports
48+
- name: error-return
49+
- name: error-strings
50+
- name: error-naming
51+
- name: exported
52+
- name: if-return
53+
- name: increment-decrement
54+
- name: var-naming
55+
- name: var-declaration
56+
- name: package-comments
57+
- name: range
58+
- name: receiver-naming
59+
- name: time-naming
60+
- name: unexported-return
61+
- name: indent-error-flow
62+
- name: errorf
63+
- name: duplicated-imports
64+
- name: modifies-value-receiver
65+
gofumpt:
66+
extra-rules: true
67+
lang-version: 1.16
3168

3269
issues:
3370
exclude-rules:

.ignore

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
/vendor
2-
/public/vendor/plugins
1+
*.min.css
2+
*.min.js
33
/modules/options/bindata.go
44
/modules/public/bindata.go
55
/modules/templates/bindata.go
6+
/public/vendor/plugins
7+
/vendor
8+
node_modules

.revive.toml

-26
This file was deleted.

.stylelintrc

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ rules:
1414
declaration-block-no-redundant-longhand-properties: null
1515
declaration-block-single-line-max-declarations: null
1616
declaration-empty-line-before: null
17+
function-no-unknown: null
1718
hue-degree-notation: null
1819
indentation: 2
1920
max-line-length: null

0 commit comments

Comments
 (0)