jaegertracing/jaeger

Enable more revive linter rules

Open

#5,506 opened on Jun 2, 2024

View on GitHub
 (25 comments) (0 reactions) (0 assignees)Go (18,974 stars) (2,326 forks)batch import
good first issuehelp wanted

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.

Contributor guide