Skip to content

cybozu-go/golang-custom-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub release CI PkgGoDev Go Report Card

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,...