package sa1003

import "honnef.co/go/tools/staticcheck/sa1003"

Index

Variables

var Analyzer = SCAnalyzer.Analyzer
var SCAnalyzer = lint.InitializeAnalyzer(&lint.Analyzer{
	Analyzer: &analysis.Analyzer{
		Name:     "SA1003",
		Requires: []*analysis.Analyzer{buildir.Analyzer},
		Run:      callcheck.Analyzer(checkEncodingBinaryRules),
	},
	Doc: &lint.RawDocumentation{
		Title: `Unsupported argument to functions in \'encoding/binary\'`,
		Text:  "" /* 318 byte string literal not displayed */,

		Since:    "2017.1",
		Severity: lint.SeverityError,
		MergeIf:  lint.MergeIfAny,
	},
})

Functions

func CanBinaryMarshal

func CanBinaryMarshal(pass *analysis.Pass, node code.Positioner, v callcheck.Value) bool

Source Files

sa1003.go

Version
v0.7.0-0.dev
Published
Mar 5, 2025
Platform
linux/amd64
Imports
9 packages
Last checked
now

Tools for package owners.