mirror of https://github.com/go-gitea/gitea.git
Clean up revive linter config, tweak golangci output (#30980)
The `errorCode` and `warningCode` options were removed at some point, they are not recognized by golangci-lint any more at least and they do not match their published json schema. `confidence` and `ignore-generated-header` are at the default value so does not need to be configured. https://golangci-lint.run/usage/linters/#revive
This commit is contained in:
parent
821d2fc2a3
commit
028992429a
|
@ -29,6 +29,8 @@ run:
|
||||||
|
|
||||||
output:
|
output:
|
||||||
sort-results: true
|
sort-results: true
|
||||||
|
sort-order: [file]
|
||||||
|
show-stats: true
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
stylecheck:
|
stylecheck:
|
||||||
|
@ -40,11 +42,7 @@ linters-settings:
|
||||||
- ifElseChain
|
- ifElseChain
|
||||||
- singleCaseSwitch # Every time this occurred in the code, there was no other way.
|
- singleCaseSwitch # Every time this occurred in the code, there was no other way.
|
||||||
revive:
|
revive:
|
||||||
ignore-generated-header: false
|
severity: error
|
||||||
severity: warning
|
|
||||||
confidence: 0.8
|
|
||||||
errorCode: 1
|
|
||||||
warningCode: 1
|
|
||||||
rules:
|
rules:
|
||||||
- name: atomic
|
- name: atomic
|
||||||
- name: bare-return
|
- name: bare-return
|
||||||
|
|
Loading…
Reference in New Issue