gormcheck

package
v0.0.0-...-6059b0e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 29, 2022 License: MIT Imports: 2 Imported by: 0

README

sharefull/refactortools/gormcheck

pkg.go.dev

gormcheck finds code which may be SQL injection.

Install

You can get gormcheck by go install command (Go 1.16 and higher).

$ go install github.com/sharefull/refactortools/gormcheck/cmd/gormcheck@latest

How to use

gormcheck run with go vet as below when Go is 1.12 and higher.

$ go vet -vettool=$(which gormcheck) ./...

Analyze with golang.org/x/tools/go/analysis

You can use gormcheck.Analyzers with unitchecker.

package main

import (
	"github.com/sharefull/refactortools/gormcheck"
	"golang.org/x/tools/go/analysis/unitchecker"
)

func main() { unitchecker.Main(gormcheck.Analyzers...) }

The gormcheck provides following analyzers.

Documentation

Index

Constants

This section is empty.

Variables

Analyzers is a list of analyzers in gormcheck. It can be use as an argument of unitchecker.Main.

package main

import (
	"github.com/sharefull/refactortools/gormcheck"
	"golang.org/x/tools/go/analysis/unitchecker"
)

func main() { unitchecker.Main(gormcheck.Analyzers...) }

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
passes

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL