Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
14.43k
stars
5.54k
forks
source link
gocritic->sloppyLen - Detects usage of `len` when result is obvious or doesn’t make sense. Should we enable it? #15498
Closed
zak-pawel closed 2 months ago
Description
This issue starts a discussion about enabling:
len
when result is obvious or doesn’t make sense.Example
Before:
After:
Expected output
Decision about enabling or not enabling this checker.
Findings
For this checker, the following findings were found in the current codebase:
Additional configuration
For this checker, no additional configuration can be provided.