too_many_lines not triggered on functions with #[tracing::instrument] #13753
Labels
C-bug
Category: Clippy is not doing the correct thing
I-false-negative
Issue: The lint should have been triggered on code, but wasn't
Summary
'too_many_lines' is not trigfgered on functions with #[tracing::instrument].
Other lints seem to work insude the affected functions.
Lint Name
too_many_lines
Reproducer
I tried this code: (with too-many-lines-threshold = 2)
I expected to see this happen:
Expected warnings on both functions, long_function_1() and long_function_2()
Instead, this happened:
Received only a single warning on long_function_1()
Version
The text was updated successfully, but these errors were encountered: