singlechecker

package
v0.0.0-...-f39ad0c Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2023 License: GPL-2.0 Imports: 9 Imported by: 21

Documentation

Overview

Package singlechecker defines the main function for an analysis driver with only a single analysis. This package makes it easy for a provider of an analysis package to also provide a standalone tool that runs just that analysis.

For example, if example.org/findbadness is an analysis package, all that is needed to define a standalone tool is a file, example.org/findbadness/cmd/findbadness/main.go, containing:

// The findbadness command runs an analysis.
package main

import (
	"example.org/findbadness"
	"github.com/system-pclub/GCatch/GCatch/tools/go/analysis/singlechecker"
)

func main() { singlechecker.Main(findbadness.Analyzer) }

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(a *analysis.Analyzer)

Main is the main function for a checker command for a single analysis.

Types

This section is empty.

Jump to

Keyboard shortcuts

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