From c0b225941faef25e1995d5a6fe405dab11a47569 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 25 Jan 2022 00:56:06 +0100 Subject: [PATCH] =?UTF-8?q?Complain=20about=20super=20old=20build=20status?= =?UTF-8?q?es=20in=20README=20=C3=A9=5F=C3=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package_linter.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package_linter.py b/package_linter.py index b8ca652..6dc8aee 100755 --- a/package_linter.py +++ b/package_linter.py @@ -578,6 +578,16 @@ class App(TestSuite): % (id_, id_) ) + superoldstuff = ["%20%28Apps%29", "%20%28Community%29", "/jenkins/job", "ci-buster", "ci-stretch"] + if any(oldstuff in content for oldstuff in superoldstuff): + yield Warning( + "The README contains references to super-old build status (such as old jenkins job or ci-apps-arm or ci-stretch...) which are not relevant anymore. Please consider switching to the new auto-generated README format which contains the standard CI badge at the top." + ) + elif "ci-apps-arm" in content: + yield Info( + "The README contains references to super-old build status (such as old jenkins job or ci-apps-arm or ci-stretch...) which are not relevant anymore. Please consider switching to the new auto-generated README format which contains the standard CI badge at the top." + ) + @test() def placeholder_help_string(self): if (