Skip to content

[Bug]: Linting fails on main: time-naming violation in search_traces.go #7911

@Anmol202005

Description

@Anmol202005

What happened?

Running make lint on the main branch fails, preventing local development and contributions. The linting process exits with an error about incorrect variable naming in search_traces.go, which blocks anyone trying to build or test the project locally.

Steps to reproduce

  1. Clone the repository
  2. Checkout the latest main branch (commit 3361fcc or later)
  3. Run make lint
  4. Observe the linting failure with error about durationMin variable naming

Expected behavior

make lint should pass without errors on the main branch.

Relevant log output

INFO [runner] linters took 866.950583ms with stages: goanalysis_metalinter: 833.429466ms 
cmd/jaeger/internal/extension/jaegermcp/internal/handlers/search_traces.go:124:6: time-naming: var durationMin is of type time.Duration; don't use unit-specific suffix "Min" (revive)
        var durationMin, durationMax time.Duration
            ^

Screenshot

Image

Additional context

No response

Jaeger backend version

No response

SDK

No response

Pipeline

No response

Stogage backend

No response

Operating system

No response

Deployment model

No response

Deployment configs

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggoPull requests that update go code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions