mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-12 08:00:04 +01:00
`dbmate` package was starting to get a bit polluted. This PR migrates each driver into a separate package, with clean separation between each. In addition: * Drivers are now initialized with a URL, avoiding the need to pass `*url.URL` to every method * Sqlite supports a cleaner syntax for relative paths * Driver tests now load their test URL from environment variables Public API of `dbmate` package has not changed (no changes to `main` package).
32 lines
470 B
YAML
32 lines
470 B
YAML
linters:
|
|
enable:
|
|
- bodyclose
|
|
- deadcode
|
|
- depguard
|
|
- errcheck
|
|
- goimports
|
|
- golint
|
|
- gosimple
|
|
- govet
|
|
- ineffassign
|
|
- misspell
|
|
- nakedret
|
|
- rowserrcheck
|
|
- staticcheck
|
|
- structcheck
|
|
- typecheck
|
|
- unconvert
|
|
- unparam
|
|
- unused
|
|
- varcheck
|
|
- whitespace
|
|
|
|
linters-settings:
|
|
goimports:
|
|
local-prefixes: github.com/amacneil/dbmate
|
|
misspell:
|
|
locale: US
|
|
|
|
issues:
|
|
include:
|
|
- EXC0002
|