From: Daniel Martí Date: Wed, 3 Jun 2015 13:52:01 +0000 (+0200) Subject: Merge branch 'changelog' of https://gitlab.com/krt/fdroidserver X-Git-Tag: 0.4.0~58 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=4b59f913f12a18f31036e0ab8cba21e53d860cbe;p=fdroidserver.git Merge branch 'changelog' of https://gitlab.com/krt/fdroidserver --- 4b59f913f12a18f31036e0ab8cba21e53d860cbe diff --cc fdroidserver/import.py index fa9c0253,c2f0bbd7..5e0c6b02 --- a/fdroidserver/import.py +++ b/fdroidserver/import.py @@@ -142,7 -143,7 +143,8 @@@ def main() repotype = 'git' sourcecode = url issuetracker = url + '/issues' + website = "" + changelog = url + '/commits' elif url.startswith('https://gitlab.com/'): projecttype = 'gitlab' repo = url diff --cc fdroidserver/lint.py index 55722506,19dfcada..169dc147 --- a/fdroidserver/lint.py +++ b/fdroidserver/lint.py @@@ -70,10 -73,15 +70,18 @@@ regex_warnings = "github URLs should always use https:// not http://"), (re.compile(r'.*[^sS]://gitorious\.org/.*'), "gitorious URLs should always use https:// not http://"), + # TODO enable in August 2015, when Google Code goes read-only + # (re.compile(r'.*://code\.google\.com/.*'), + # "code.google.com will be soon switching down, perhaps it moved to github.com?"), ], + 'Changelog': [ + (re.compile(r'.*[^sS]://code\.google\.com/.*'), + "code.google.com URLs should always use https:// not http://"), + (re.compile(r'.*[^sS]://github\.com/.*'), + "github URLs should always use https:// not http://"), + (re.compile(r'.*[^sS]://gitorious\.org/.*'), + "gitorious URLs should always use https:// not http://"), + ], 'License': [ (re.compile(r'^(|None|Unknown)$'), "No license specified"), @@@ -117,8 -125,16 +125,12 @@@ regex_pedantic = (re.compile(r'.*github\.com/[^/]+/[^/]+/issues/.*'), "/issues is often enough on its own"), ], + 'Changelog': [ + (re.compile(r'.*commit.*', re.IGNORECASE), + "Not every commit log is suitable as change log"), + ], '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][.,!?][ $]'), + (re.compile(r'.*[a-z0-9][.!?][ $]'), "Punctuation should be avoided"), ], }