golang-custom-analyzer

module
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: Apache-2.0

README

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

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

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