Prevent direct usage of io.element.android.libraries.ui.strings.R package.
This commit is contained in:
parent
445df09411
commit
8f8ac76d69
1 changed files with 3 additions and 0 deletions
|
|
@ -129,3 +129,6 @@ System\.currentTimeMillis\(\)===1
|
|||
|
||||
### 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_]
|
||||
|
||||
### Use `import io.element.android.libraries.ui.strings.R as StringsR` then `StringR.string.<stringKey>` instead
|
||||
io\.element\.android\.libraries\.ui\.strings\.R\.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue