Files
photoview/api/.golangci.yml
Kostiantyn ff5b83916c A few small fixes for bugs, detected during the merge upstream changes to my forked repo (#1270)
* 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
2025-08-19 16:34:46 +03:00

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$