1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-09-11 15:13:27 +02:00

lint: be more strict about redundant summaries

This commit is contained in:
Daniel Martí 2015-05-22 09:33:15 +02:00
parent 550d907b8c
commit 7b0e8bd01d

View File

@ -81,6 +81,10 @@ regex_warnings = {
'Summary': [
(re.compile(r'^$'),
"Summary yet to be filled"),
(re.compile(r'.*\b(free software|open source)\b.*', re.IGNORECASE),
"No need to specify that the app is Free Software"),
(re.compile(r'.*((your|for).*android|android.*(app|device|client|port|version))', re.IGNORECASE),
"No need to specify that the app is for Android"),
],
'Description': [
(re.compile(r'^No description available$'),
@ -114,8 +118,6 @@ regex_pedantic = {
"/issues is often enough on its own"),
],
'Summary': [
(re.compile(r'.*\b(free software|open source)\b.*', re.IGNORECASE),
"No need to specify that the app is Free Software"),
(re.compile(r'.*[a-z0-9][.!?][ $]'),
"Punctuation should be avoided"),
],