Skip to content

Stringer emits negative bounds checks on unsigned integers #1876

@ti-mo

Description

@ti-mo

golang/tools@82041a1 introduced more bounds checking but doesn't special-case unsigned ints, tripping up staticcheck's SA4003.

A staticcheck.conf was added to the repo in #1875 to temporarily disable SA4003 until stringer is fixed. This issue is for addressing the issue upstream in golang/tools and removing staticcheck.conf once merged.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions