toolshonnef.co/go/tools/quickfix/qf1005 Index | Files

package qf1005

import "honnef.co/go/tools/quickfix/qf1005"

Index

Variables

var Analyzer = SCAnalyzer.Analyzer
var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{
	Analyzer: &analysis.Analyzer{
		Name:     "QF1005",
		Run:      run,
		Requires: []*analysis.Analyzer{inspect.Analyzer},
	},
	Doc: &lint.RawDocumentation{
		Title:    `Expand call to \'math.Pow\'`,
		Text:     `Some uses of \'math.Pow\' can be simplified to basic multiplication.`,
		Before:   `math.Pow(x, 2)`,
		After:    `x * x`,
		Since:    "2021.1",
		Severity: lint.SeverityHint,
	},
})

Source Files

qf1005.go

Version
v0.5.0
Published
Aug 13, 2024
Platform
windows/amd64
Imports
12 packages
Last checked
3 minutes ago

Tools for package owners.