jaegertracing/jaeger

Enable more revive linter rules

Open

#5506 aperta il 2 giu 2024

Vedi su GitHub
 (26 commenti) (0 reazioni) (0 assegnatari)Go (2326 fork)batch import
good first issuehelp wanted

Metriche repository

Star
 (18.974 star)
Metriche merge PR
 (Merge medio 4g 11h) (85 PR mergiate in 30 g)

Descrizione

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.

Guida contributor