shiori/.golangci.yml
Felipe Martin 4aa0f51f10
fix: postgresql migration not working with other languages (#1013)
* 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
2024-12-11 13:10:56 +01:00

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