no_dubious_bit_shift

package
v0.0.0-...-8888feb Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NoDubiousBitShiftRule

type NoDubiousBitShiftRule struct{}

NoDubiousBitShiftRule detects dubious bit shifting of fixed-size integer values. Shifting an integer by more bits than its size always results in zero (for unsigned) or zero/-1 (for signed).

func (*NoDubiousBitShiftRule) Apply

func (r *NoDubiousBitShiftRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure

Apply applies the rule to given file.

func (*NoDubiousBitShiftRule) ApplyToNode

func (r *NoDubiousBitShiftRule) ApplyToNode(file *lint.File, node ast.Node, _ lint.Arguments) []lint.Failure

ApplyToNode applies the rule while walking the AST together with other rules.

func (*NoDubiousBitShiftRule) CacheTier

CacheTier returns the cache tier for this rule.

func (*NoDubiousBitShiftRule) Group

func (*NoDubiousBitShiftRule) Group() string

Group returns the rule group.

func (*NoDubiousBitShiftRule) Name

func (*NoDubiousBitShiftRule) Name() string

Name returns the rule name.

func (*NoDubiousBitShiftRule) RequiresTypecheck

func (*NoDubiousBitShiftRule) RequiresTypecheck() bool

RequiresTypecheck indicates this rule needs type information.

Jump to

Keyboard shortcuts

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