Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utgwkk/goqumysqllint
A linter for goqu query builder with MySQL dialect
https://github.com/utgwkk/goqumysqllint
Last synced: 11 days ago
JSON representation
A linter for goqu query builder with MySQL dialect
- Host: GitHub
- URL: https://github.com/utgwkk/goqumysqllint
- Owner: utgwkk
- License: mit
- Created: 2024-12-12T15:02:59.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-19T02:07:00.000Z (26 days ago)
- Last Synced: 2025-01-02T23:41:30.509Z (11 days ago)
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# goqumysqllint
A linter for goqu query builder with MySQL dialect
## Example
See [testdata/src/](./testdata/src/) directory.
## Usage
### As a vettool
```
$ go install github.com/utgwkk/goqumysqllint/cmd/goqumysqllint@latest
$ go vet -vettool=`which goqumysqllint` ./...
```### As a golangci-lint plugin
You can use goqumysqllint via [golangci-lint's module plugin system](https://golangci-lint.run/plugins/module-plugins/).
In .custom-gcl.yml:
```yaml
version: v1.62.2 # or specify 'master' to always build latest but maybe unstable version
plugins:
- module: 'github.com/utgwkk/goqumysqllint'
version: latest
```In .golangci.yml:
```yaml
linters-settings:
custom:
goqumysqllint:
type: module
linters:
enable:
- goqumysqllint
```