timebomb

package
Version: v0.0.0-...-c32643c Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: MIT Imports: 10 Imported by: 0

README

buildtag/timebomb

pkg.go.dev

timebomb timebomb finds suspicious build tags such as below.

  • a build tag which has "go" prefix and it corresponds to a version which does not start development yet

Install

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

$ go install github.com/gostaticanalysis/buildtag/timebomb/cmd/timebomb@latest

How to use

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

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

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

You can use timebomb.Analyzer with unitchecker.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "timebomb",
	Doc:  doc,
	Run:  run,
	Requires: []*analysis.Analyzer{
		buildtag.Analyzer,
	},
	FactTypes: []analysis.Fact{
		(*hasReleaseTag)(nil),
	},
}

Functions

This section is empty.

Types

This section is empty.

Source Files

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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