diff --git a/README.md b/README.md index 7e4d78a3a..04b413c81 100644 --- a/README.md +++ b/README.md @@ -71,13 +71,19 @@ Timber ships with embedded lint rules to detect problems in your app. Timber.d("Hello " + firstName + " " + lastName + "!"); ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ - * **TimberExceptionLogging** (Warning) - Detects the use of null or empty messages, or using the exception message + * **TimberExceptionLogging** (Warning) - Detects the use of null or empty messages, or using the exception message when logging an exception. Example.java:35: Warning: Explicitly logging exception message is redundant [TimberExceptionLogging] Timber.d(e, e.getMessage()); ~~~~~~~~~~~~~~ +If you wish to suppress the lint rules in your project, add the below gradle configuration: + + lintOptions { + disable 'TimberArgCount', 'TimberArgTypes', 'TimberTagLength', 'LogNotTimber', 'StringFormatInTimber', 'BinaryOperationInTimber', 'TimberExceptionLogging', 'ThrowableNotAtBeginning' + } + Download --------