From 037e527971a99548d9ab10a69451d5ef2d7d63d2 Mon Sep 17 00:00:00 2001 From: OniriCorpe Date: Wed, 21 Feb 2024 01:37:29 +0100 Subject: [PATCH] Downgrade misc_nginx_check_regex_in_location from Warning to Info --- package_linter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package_linter.py b/package_linter.py index 761a092..9e3d439 100755 --- a/package_linter.py +++ b/package_linter.py @@ -1448,7 +1448,7 @@ class Configurations(TestSuite): cmd = 'grep -q -IhEro "location ~ __PATH__" %s' % (app.path + "/conf/" + filename) if os.system(cmd) != 0: - yield Warning( + yield Info( "When using regexp in the nginx location field (location ~ __PATH__), start the path with ^ (location ~ ^__PATH__)." )