Skip to content

Commit 797f275

Browse files
committed
Merge remote-tracking branch 'origin' into delete_releases_attachments_if_release_is_deleted
2 parents 7b8c816 + 99f3ee3 commit 797f275

File tree

2,887 files changed

+417866
-116258
lines changed

Some content is hidden

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

2,887 files changed

+417866
-116258
lines changed

Diff for: .drone.yml

+681-353
Large diffs are not rendered by default.

Diff for: .eslintrc

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
root: true
2+
3+
extends:
4+
- eslint:recommended
5+
6+
parserOptions:
7+
ecmaVersion: 2015
8+
9+
env:
10+
browser: true
11+
jquery: true
12+
es6: true
13+
14+
globals:
15+
Clipboard: false
16+
CodeMirror: false
17+
emojify: false
18+
SimpleMDE: false
19+
Vue: false
20+
Dropzone: false
21+
u2fApi: false
22+
hljs: false
23+
24+
rules:
25+
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}]
26+
prefer-const: [2, {destructuring: all}]
27+
no-var: [2]

Diff for: .github/FUNDING.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: gitea

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ coverage.all
6767
/node_modules
6868
/modules/indexer/issues/indexers
6969
routers/repo/authorized_keys
70+
/yarn.lock
7071

7172
# Snapcraft
7273
snap/.snapcraft/

Diff for: .golangci.yml

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
linters:
2+
enable:
3+
- gosimple
4+
- deadcode
5+
- typecheck
6+
- govet
7+
- errcheck
8+
- staticcheck
9+
- unused
10+
- structcheck
11+
- varcheck
12+
- golint
13+
- dupl
14+
#- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time.
15+
- gofmt
16+
- misspell
17+
- gocritic
18+
enable-all: false
19+
disable-all: true
20+
fast: false
21+
22+
linters-settings:
23+
gocritic:
24+
disabled-checks:
25+
- ifElseChain
26+
- singleCaseSwitch # Every time this occured in the code, there was no other way.
27+
28+
issues:
29+
exclude-rules:
30+
# Exclude some linters from running on tests files.
31+
- path: _test\.go
32+
linters:
33+
- gocyclo
34+
- errcheck
35+
- dupl
36+
- gosec
37+
- unparam
38+
- staticcheck
39+
- path: models/migrations/v
40+
linters:
41+
- gocyclo
42+
- errcheck
43+
- dupl
44+
- gosec
45+
- linters:
46+
- dupl
47+
text: "webhook"
48+
- linters:
49+
- gocritic
50+
text: "`ID' should not be capitalized"
51+
- path: modules/templates/helper.go
52+
linters:
53+
- gocritic
54+
- linters:
55+
- unused
56+
- deadcode
57+
text: "swagger"
58+
- path: contrib/pr/checkout.go
59+
linters:
60+
- errcheck
61+
- path: models/issue.go
62+
linters:
63+
- errcheck
64+
- path: models/migrations/
65+
linters:
66+
- errcheck
67+
- path: modules/log/
68+
linters:
69+
- errcheck
70+
- path: routers/routes/routes.go
71+
linters:
72+
- dupl
73+
- path: routers/repo/view.go
74+
linters:
75+
- dupl
76+
- path: models/migrations/
77+
linters:
78+
- unused
79+
- linters:
80+
- staticcheck
81+
text: "argument x is overwritten before first use"
82+
- path: modules/httplib/httplib.go
83+
linters:
84+
- staticcheck
85+
# Enabling this would require refactoring the methods and how they are called.
86+
- path: models/issue_comment_list.go
87+
linters:
88+
- dupl
89+
- linters:
90+
- misspell
91+
text: '`Unknwon` is a misspelling of `Unknown`'

Diff for: .lesshintrc.json

-12
This file was deleted.

Diff for: .npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact=true

Diff for: .stylelintrc

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
extends: stylelint-config-standard
2+
3+
rules:
4+
block-closing-brace-empty-line-before: null
5+
color-hex-length: null
6+
comment-empty-line-before: null
7+
declaration-empty-line-before: null
8+
indentation: 4
9+
no-descending-specificity: null
10+
rule-empty-line-before: null
11+
selector-pseudo-element-colon-notation: null

0 commit comments

Comments
 (0)