From a3272065ddc64ab2368150a1ae393df29f7d0a2e Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 23 Oct 2021 17:23:08 +0200 Subject: [PATCH] Report remaining disclaimer placeholders being weird wording @_@ --- package_linter.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package_linter.py b/package_linter.py index 783232f..30be907 100755 --- a/package_linter.py +++ b/package_linter.py @@ -453,6 +453,11 @@ class App(TestSuite): - You are encouraged to create a doc/DISCLAIMER.md file, which should contain any important information to be presented to the admin before installation. Check https://github.com/YunoHost/example_ynh/blob/master/doc/DISCLAIMER.md for more details (it should be somewhat equivalent to the old 'Known limitations' and 'Specific features' section). (It's not mandatory to create this file if you're absolutely sure there's no relevant info to show to the user) - If relevant for this app, screenshots can be added in a doc/screenshots/ folder.""") + @test() + def disclaimer_wording(app): + if os.system(r"grep -nr -q 'Any known limitations, constrains or stuff not working, such as\|Other infos that people should be' %s/doc/" % app.path) == 0: + yield Info("In DISCLAIMER.md: 'Any known limitations [...] such as' and 'Other infos [...] such as' are supposed to be placeholder sentences meant to explain to packagers what is the expected content, but is not an appropriate wording for end users :/") + @test() def change_url_script(app):