SchildiChat-android/tools/check/forbidden_strings_in_layout...

22 lines
693 B
Plaintext
Raw Normal View History

2024-09-24 12:09:02 +02:00
# Copyright 2021-2024 New Vector Ltd.
2021-06-15 10:30:54 +02:00
#
2024-09-24 12:09:02 +02:00
# SPDX-License-Identifier: AGPL-3.0-only
# Please see LICENSE in the repository root for full details.
2021-06-15 10:30:54 +02:00
# This file list String which are not allowed in source code.
# Use Perl regex to write forbidden strings
# Note: line cannot start with a space. Use \s instead.
# It is possible to specify an authorized number of occurrence with === suffix. Default is 0
# Example:
# AuthorizedStringThreeTimes===3
# Extension:xml
### Use style="@style/Widget.Vector.TextView.*" instead of textSize attribute
2021-12-25 23:48:11 +01:00
android:textSize===11
### Use `@id` and not `@+id` when referencing ids in layouts
layout_(.*)="@\+id
accessibilityTraversal(.*)="@\+id
toolbarId="@\+id