golang custom analyzer
This repository contains custom analysers for Go.
custom-checker
custom-checker
is the program to run the following analysers at once:
eventuallycheck
restrictpkg
Usage
$ custom-checker -restrictpkg.packages=html/template,log targetfile.go
eventuallycheck
eventuallycheck
is a static analysis tool to detect gomega.Eventually
without Should
or ShouldNot
.
Usage
$ eventuallycheck [FILES]
Target functions
restrictpkg
restrictpkg
is a static analysis tool to restrict which package to use.
Usage
Let PACKAGE1
and PACKAGE2
be the names of the packages you want to restrict.
$ restrictpkg -packages PACKAGE1,PACKAGE2,...