Closed SunnyBe closed 2 years ago
You should be able to annotate it with @Suppress
or @SuppressLint
and the "BinaryOperationInTimber"
string.
Thank you Jake, this helps. I really hope this use-case is considered in subsequent version. There are a couple of places where I had really long text to log with Timber but I had to suppress them all. Thanks again for the suggestion.
I am logging a really long string which must/has to be concatenated to pass my max length lint warning. This is the current concatenated multi line that should pass the max length lint warning but fails the
BinaryOperationInTimber
Timber.i( "$LOG_TAG: install productAsUri has no authority. " + "The second part of the string is this part which is really long=$referrerAsUri" )
But with this below it passes the
BinaryOperationInTimber
but fails the max length lint warning errorTimber.i("$LOG_TAG: install productAsUri has no authority. The second part of the string is this part which is really long=$referrerAsUri")
How do I go about this warning without turning it off for the project?