jaegertracing/jaeger

Enable more revive linter rules

Open

#5.506 aberto em 2 de jun. de 2024

Ver no GitHub
 (26 comments) (0 reactions) (0 assignees)Go (2.326 forks)batch import
good first issuehelp wanted

Métricas do repositório

Stars
 (18.974 stars)
Métricas de merge de PR
 (Mesclagem média 4d 15h) (89 fundiu PRs em 30d)

Description

In #5505 we introduced a revive linter, but had to disable many of its rules because they were breaking on some places in the code. https://github.com/jaegertracing/jaeger/blob/b38d2f9bc18806b6e716f6f666a786f0aca7d912/.golangci.yml#L154

We can re-enable those rules incrementally by fixing the corresponding breaks one rule at a time (make lint should succeed) and removing the disabling entry from the config.

Strong advice: DO NOT OPEN A PR without discussing the impact of the specific linter on this issue first. We don't want very possible linter - some of them are stupid, others require a lot of code changes with minimal benefits.

Guia do colaborador