Skip to content

Implement special handling for init #56

Open
@sonalmahajan15

Description

@sonalmahajan15

Implement special handling for init. Below is an example where a false positive is reported.

var _x *int

func init() {
	_x = new(int)
}

func test() {
	_ = *_x // false positive reported here
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions