mirror of
https://git.vectorsigma.ru/public/photoview.git
synced 2026-08-03 18:29:17 +00:00
* Migrate GolangCI config to the latest version; fix nll-pointer exception in the external EXIF parser and order of GPS coords in the internal one; updated links in Readme and added missing LibHeif exports * Improve GPS error handling --------- Co-authored-by: Konstantin Koval
99 lines
1.6 KiB
YAML
99 lines
1.6 KiB
YAML
version: "2"
|
|
run:
|
|
tests: false
|
|
allow-parallel-runners: true
|
|
allow-serial-runners: true
|
|
output:
|
|
formats:
|
|
junit-xml:
|
|
path: golang-lint.xml
|
|
sarif:
|
|
path: golang-lint.sarif
|
|
sort-order:
|
|
- linter
|
|
- severity
|
|
- file
|
|
linters:
|
|
enable:
|
|
- asciicheck
|
|
- bidichk
|
|
- copyloopvar
|
|
- cyclop
|
|
- decorder
|
|
- depguard
|
|
- dogsled
|
|
- dupl
|
|
- dupword
|
|
- funlen
|
|
- gocheckcompilerdirectives
|
|
- gochecknoinits
|
|
- gocognit
|
|
- goconst
|
|
- gocyclo
|
|
- godot
|
|
- godox
|
|
- goheader
|
|
- gomoddirectives
|
|
- gomodguard
|
|
- goprintffuncname
|
|
- gosec
|
|
- grouper
|
|
- inamedparam
|
|
- interfacebloat
|
|
- lll
|
|
- maintidx
|
|
- misspell
|
|
- mnd
|
|
- nakedret
|
|
- nestif
|
|
- nlreturn
|
|
- nolintlint
|
|
- nosprintfhostport
|
|
- prealloc
|
|
- predeclared
|
|
- promlinter
|
|
- tagalign
|
|
- usestdlibvars
|
|
- whitespace
|
|
- wsl
|
|
disable:
|
|
- unused
|
|
exclusions:
|
|
rules:
|
|
- linters:
|
|
- dupl
|
|
- errcheck
|
|
- gocyclo
|
|
- gosec
|
|
path: _test\.go
|
|
- linters:
|
|
- forbidigo
|
|
path-except: _test\.go
|
|
- linters:
|
|
- lll
|
|
source: "^//go:generate "
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|
|
issues:
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
severity:
|
|
default: error
|
|
rules:
|
|
- linters:
|
|
- dupl
|
|
severity: info
|
|
formatters:
|
|
enable:
|
|
- gci
|
|
- gofmt
|
|
- gofumpt
|
|
- goimports
|
|
exclusions:
|
|
paths:
|
|
- third_party$
|
|
- builtin$
|
|
- examples$
|