mirror of
https://github.com/go-shiori/shiori.git
synced 2025-09-26 06:49:54 +08:00
* fix: word check on migration error * refactor: Improve PostgreSQL migration error handling using error codes * refactor: Improve PostgreSQL migration error handling and transaction management * refactor: Remove unused compareWordsInString function and its tests * style: Clean up migrations.go imports and comments * style: Fix gofmt formatting in migrations.go * chore: remove migrations_test file * ci: address golangci-lint warning * test: stop tests if creating database fails * fix: ensure migration transaction is commited or rolled back
31 lines
527 B
YAML
31 lines
527 B
YAML
# Docs: https://golangci-lint.run/usage/configuration/#config-file
|
|
|
|
run:
|
|
timeout: 5m
|
|
|
|
issues:
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
exclude-dirs:
|
|
- internal/mocks
|
|
|
|
linters-settings:
|
|
gofmt:
|
|
simplify: true
|
|
govet:
|
|
enable-all: true
|
|
disable:
|
|
- fieldalignment
|
|
|
|
linters:
|
|
disable-all: true
|
|
enable:
|
|
- copyloopvar
|
|
- gofmt
|
|
- gosimple
|
|
# - govet # Re-enable when all shadow declarations are fixed
|
|
- ineffassign
|
|
- predeclared
|
|
- staticcheck
|
|
- unconvert
|
|
- unused
|