Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```