mirror of
https://github.com/element-hq/element-android
synced 2024-11-23 18:05:36 +03:00
Add a check on suspicious string template.
Especially we want to ensure that the app does not log unexpected content.
This commit is contained in:
parent
680dc207c0
commit
6ac88a9420
1 changed files with 3 additions and 0 deletions
|
@ -185,3 +185,6 @@ System\.currentTimeMillis\(\)===2
|
|||
onCreateOptionsMenu
|
||||
onOptionsItemSelected
|
||||
onPrepareOptionsMenu
|
||||
|
||||
### Suspicious String template. Please check that the string template will behave as expected, i.e. the class field and not the whole object will be used. For instance `Timber.d("$event.type")` is not correct, you should write `Timber.d("${event.type}")`. In the former the whole event content will be logged, since it's a data class. If this is expected (i.e. to fix false positive), please add explicit curly braces (`{` and `}`) around the variable, for instance `"elementLogs.${i}.txt"`
|
||||
\$[a-zA-Z_]\w*\??\.[a-zA-Z_]
|
||||
|
|
Loading…
Reference in a new issue