mirror of
https://gitea.com/gitea/tea.git
synced 2024-11-24 11:31:36 +01:00
222d0501df
~~this is semi-blocked by https://github.com/charmbracelet/glamour/pull/96, but behaviour isn't really worse than the previous behaviour (most links work, some are still broken)~~ #### testcase for link resolver ``` tea pr 332 tea checkout 332 && make install && tea pr 332 ``` - [rel](./332) - [abs](/gitea/tea/pulls/332) - [full](https://gitea.com/gitea/tea/pulls/332) Co-authored-by: Norwin Roosen <git@nroo.de> Co-authored-by: 6543 <6543@obermui.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/332 Reviewed-by: 6543 <6543@obermui.de> Reviewed-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Norwin <noerw@noreply.gitea.io> Co-committed-by: Norwin <noerw@noreply.gitea.io>
61 lines
1.5 KiB
YAML
61 lines
1.5 KiB
YAML
run:
|
|
tests: true
|
|
skip-dirs:
|
|
- _examples
|
|
|
|
output:
|
|
print-issued-lines: false
|
|
|
|
linters:
|
|
enable-all: true
|
|
disable:
|
|
- maligned
|
|
- megacheck
|
|
- lll
|
|
- gocyclo
|
|
- dupl
|
|
- gochecknoglobals
|
|
- funlen
|
|
- godox
|
|
- wsl
|
|
- gomnd
|
|
- gocognit
|
|
- goerr113
|
|
- nolintlint
|
|
- testpackage
|
|
- godot
|
|
- nestif
|
|
|
|
linters-settings:
|
|
govet:
|
|
check-shadowing: true
|
|
gocyclo:
|
|
min-complexity: 10
|
|
dupl:
|
|
threshold: 100
|
|
goconst:
|
|
min-len: 8
|
|
min-occurrences: 3
|
|
|
|
issues:
|
|
max-per-linter: 0
|
|
max-same: 0
|
|
exclude-use-default: false
|
|
exclude:
|
|
# Captured by errcheck.
|
|
- '^(G104|G204):'
|
|
# Very commonly not checked.
|
|
- 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
|
|
- 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
|
|
- 'composite literal uses unkeyed fields'
|
|
- 'declaration of "err" shadows declaration'
|
|
- 'should not use dot imports'
|
|
- 'Potential file inclusion via variable'
|
|
- 'should have comment or be unexported'
|
|
- 'comment on exported var .* should be of the form'
|
|
- 'at least one file in a package should have a package comment'
|
|
- 'string literal contains the Unicode'
|
|
- 'methods on the same type should have the same receiver name'
|
|
- '_TokenType_name should be _TokenTypeName'
|
|
- '`_TokenType_map` should be `_TokenTypeMap`'
|