From c9d2ae81ad622f087abbd7ace1bdac56e12a6523 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Fri, 23 Apr 2021 18:34:39 +0200 Subject: [PATCH] Put an actual license in LICENSE --- package_linter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package_linter.py b/package_linter.py index bac9a8a..240f045 100755 --- a/package_linter.py +++ b/package_linter.py @@ -435,6 +435,11 @@ class App(TestSuite): if not file_exists(app.path + "/" + filename): yield Error("Providing %s is mandatory" % filename) + if file_exists(app.path + "/LICENSE"): + license_content = open(app.path + "/LICENSE").read() + if "File containing the license of your package" in license_content: + yield Warning("You should put an actual license in LICENSE...") + @test() def change_url_script(app):