2019-03-14 00:00:30 +08:00
|
|
|
#
|
|
|
|
# Copyright 2018 New Vector Ltd
|
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
#
|
|
|
|
|
|
|
|
# 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
|
|
|
|
|
|
|
|
|
|
|
|
### Rubbish from merge. Please delete those lines (sometimes in comment)
|
|
|
|
<<<<<<<
|
|
|
|
>>>>>>>
|
|
|
|
|
|
|
|
### Hardcoded string are forbidden. Please create a string resource
|
|
|
|
app\:emptyLabelText=\"[^@]
|
|
|
|
android\:text=\"[^@]
|
|
|
|
android\:hint=\"[^@]
|
|
|
|
# (with tolerance for empty string)
|
|
|
|
android\:title=\"[^@"]
|
|
|
|
android\:contentDescription=\"[^@]
|
|
|
|
# (with tolerance for summary="%s")
|
|
|
|
android\:summary=\"[^@|\%s]
|
|
|
|
app\:ms_floatingLabelText=\"[^@]
|
|
|
|
app\:ms_hint=\"[^@]
|
|
|
|
|
2021-03-04 01:08:05 +08:00
|
|
|
### Do not use `template_` string. Please remove the prefix `template_` to use the generated resource instead.
|
|
|
|
\"@string/template_
|
|
|
|
|
2019-03-14 00:00:30 +08:00
|
|
|
### "DO NOT COMMIT" has been committed
|
|
|
|
DO NOT COMMIT
|
|
|
|
|
|
|
|
### Tab char is forbidden. Use only spaces
|
|
|
|
\t
|
|
|
|
|
|
|
|
### Remove space in empty lines and trailing space
|
|
|
|
[ ]$
|
|
|
|
|
|
|
|
# Use project color
|
|
|
|
# DISABLED
|
|
|
|
#@android\:color\/
|
|
|
|
|
|
|
|
# String in multiline
|
|
|
|
# DISABLED
|
|
|
|
#<string [^<]*$
|
|
|
|
|
|
|
|
### double unbreakable space looks like an issue in translation
|
|
|
|
\\u00A0\\u00A0
|
|
|
|
|
|
|
|
### Empty XML tag. Please use the single tag form (<TagName .../>)
|
|
|
|
\"><\/
|
|
|
|
|
|
|
|
### Bad comment format in XML resources. Use <!-- --> instead of //
|
|
|
|
^\s*\/\/
|
|
|
|
|
|
|
|
### Bad RTL support, use attribute with Start and End
|
|
|
|
layout_constraintRight_
|
|
|
|
layout_constraintLeft_
|
|
|
|
|
2019-06-25 21:03:32 +08:00
|
|
|
### Use Preference from androidx library (androidx.preference.PreferenceScreen)
|
2019-03-14 00:00:30 +08:00
|
|
|
<PreferenceScreen
|
|
|
|
|
2020-08-04 00:31:41 +08:00
|
|
|
### Use im.vector.app.core.preference.VectorSwitchPreference to support multiline of the title
|
2019-03-14 00:00:30 +08:00
|
|
|
<SwitchPreference
|
|
|
|
|
2020-08-04 00:31:41 +08:00
|
|
|
### Use im.vector.app.core.preference.VectorPreference to support multiline of the title
|
2019-03-14 00:00:30 +08:00
|
|
|
<Preference\n
|
|
|
|
|
2019-12-10 00:40:52 +08:00
|
|
|
### Use androidx.recyclerview.widget.RecyclerView because EpoxyRecyclerViews add behavior we do not want to
|
|
|
|
<com\.airbnb\.epoxy\.EpoxyRecyclerView
|