Skip to content

Imprecise "Loop iterator reference" rule. #6

Description

@chrisbbe

Rule "Loop iterator variables must be passed as argument to Goroutine, not referenced" is imprecise, the rule is precise in all situations covered by unit tests.

Reproduce: Analysis the source code of the Go compiler itself and take a look!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions