Skip to content

False positive when multiplying with two constants #1

@reillywatson

Description

@reillywatson

Sample code:

package dur

import "time"

const TwoDays = 2 * 24 * time.Hour

Outputs: "dur.go:5:17: Multiplication of durations: 2 * 24 * time.Hour"

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions