-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin' into delete_releases_attachment…
…s_if_release_is_deleted
- Loading branch information
Showing
2,887 changed files
with
417,866 additions
and
116,258 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
root: true | ||
|
||
extends: | ||
- eslint:recommended | ||
|
||
parserOptions: | ||
ecmaVersion: 2015 | ||
|
||
env: | ||
browser: true | ||
jquery: true | ||
es6: true | ||
|
||
globals: | ||
Clipboard: false | ||
CodeMirror: false | ||
emojify: false | ||
SimpleMDE: false | ||
Vue: false | ||
Dropzone: false | ||
u2fApi: false | ||
hljs: false | ||
|
||
rules: | ||
no-unused-vars: [error, {args: all, argsIgnorePattern: ^_, varsIgnorePattern: ^_, ignoreRestSiblings: true}] | ||
prefer-const: [2, {destructuring: all}] | ||
no-var: [2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
open_collective: gitea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
linters: | ||
enable: | ||
- gosimple | ||
- deadcode | ||
- typecheck | ||
- govet | ||
- errcheck | ||
- staticcheck | ||
- unused | ||
- structcheck | ||
- varcheck | ||
- golint | ||
- dupl | ||
#- gocyclo # The cyclomatic complexety of a lot of functions is too high, we should refactor those another time. | ||
- gofmt | ||
- misspell | ||
- gocritic | ||
enable-all: false | ||
disable-all: true | ||
fast: false | ||
|
||
linters-settings: | ||
gocritic: | ||
disabled-checks: | ||
- ifElseChain | ||
- singleCaseSwitch # Every time this occured in the code, there was no other way. | ||
|
||
issues: | ||
exclude-rules: | ||
# Exclude some linters from running on tests files. | ||
- path: _test\.go | ||
linters: | ||
- gocyclo | ||
- errcheck | ||
- dupl | ||
- gosec | ||
- unparam | ||
- staticcheck | ||
- path: models/migrations/v | ||
linters: | ||
- gocyclo | ||
- errcheck | ||
- dupl | ||
- gosec | ||
- linters: | ||
- dupl | ||
text: "webhook" | ||
- linters: | ||
- gocritic | ||
text: "`ID' should not be capitalized" | ||
- path: modules/templates/helper.go | ||
linters: | ||
- gocritic | ||
- linters: | ||
- unused | ||
- deadcode | ||
text: "swagger" | ||
- path: contrib/pr/checkout.go | ||
linters: | ||
- errcheck | ||
- path: models/issue.go | ||
linters: | ||
- errcheck | ||
- path: models/migrations/ | ||
linters: | ||
- errcheck | ||
- path: modules/log/ | ||
linters: | ||
- errcheck | ||
- path: routers/routes/routes.go | ||
linters: | ||
- dupl | ||
- path: routers/repo/view.go | ||
linters: | ||
- dupl | ||
- path: models/migrations/ | ||
linters: | ||
- unused | ||
- linters: | ||
- staticcheck | ||
text: "argument x is overwritten before first use" | ||
- path: modules/httplib/httplib.go | ||
linters: | ||
- staticcheck | ||
# Enabling this would require refactoring the methods and how they are called. | ||
- path: models/issue_comment_list.go | ||
linters: | ||
- dupl | ||
- linters: | ||
- misspell | ||
text: '`Unknwon` is a misspelling of `Unknown`' |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
save-exact=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
extends: stylelint-config-standard | ||
|
||
rules: | ||
block-closing-brace-empty-line-before: null | ||
color-hex-length: null | ||
comment-empty-line-before: null | ||
declaration-empty-line-before: null | ||
indentation: 4 | ||
no-descending-specificity: null | ||
rule-empty-line-before: null | ||
selector-pseudo-element-colon-notation: null |
Oops, something went wrong.