Skip to content

Unable to create pattern against Times(1) #63

@billsbooth

Description

@billsbooth

Can you help me diagnose why I can't lint against use of Times(1)? The following pattern should work?

    forbidigo:
      forbid:
        - pattern: Times\(1\)
          msg: "No need to specify Times(1) for a single call."

mockMarketDataService.EXPECT().GetLatestPrice(
        matchers.Ctx,
        enums.ChainNetworkSol,
        solana_go.WrappedSol.String(),
        enums.QuoteTokenNative,
    ).Return(solPrice, nil).Times(1)

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