mirror of
https://github.com/vector-im/riotX-android
synced 2025-10-06 00:02:48 +02:00
Fix code quality issues
This commit is contained in:
2
tools/check/forbidden_strings_in_code.txt
Normal file → Executable file
2
tools/check/forbidden_strings_in_code.txt
Normal file → Executable file
@@ -160,7 +160,7 @@ Formatter\.formatShortFileSize===1
|
||||
# android\.text\.TextUtils
|
||||
|
||||
### This is not a rule, but a warning: the number of "enum class" has changed. For Json classes, it is mandatory that they have `@JsonClass(generateAdapter = false)`. If the enum is not used as a Json class, change the value in file forbidden_strings_in_code.txt
|
||||
enum class===114
|
||||
enum class===117
|
||||
|
||||
### Do not import temporary legacy classes
|
||||
import org.matrix.android.sdk.internal.legacy.riot===3
|
||||
|
2
tools/check/forbidden_strings_in_layout.txt
Normal file → Executable file
2
tools/check/forbidden_strings_in_layout.txt
Normal file → Executable file
@@ -24,7 +24,7 @@
|
||||
# Extension:xml
|
||||
|
||||
### Use style="@style/Widget.Vector.TextView.*" instead of textSize attribute
|
||||
android:textSize===9
|
||||
android:textSize===11
|
||||
|
||||
### Use `@id` and not `@+id` when referencing ids in layouts
|
||||
layout_(.*)="@\+id
|
||||
|
Reference in New Issue
Block a user