Call correctly a few warning messages 64/133964/1
authorCédric Ollivier <cedric.ollivier@orange.com>
Fri, 31 Mar 2023 08:03:42 +0000 (10:03 +0200)
committerCédric Ollivier <cedric.ollivier@orange.com>
Fri, 31 Mar 2023 08:11:00 +0000 (10:11 +0200)
Issue-ID: DOC-798
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: Ic4d0817032f50116b83c32e3d059ca13d3386ed2

jjb/doc/rules.yaml

index 06a5257..95106e7 100644 (file)
@@ -75,7 +75,8 @@
                       if echo $line | grep -q '^[ \t]*sphinx-build.* -W ' ; then
                           log_success_msg "sphinx-build option '-W' used in $filename, line $linenumber."
                       elif echo $line | grep -q ' \-b spelling ' ; then
-                          log_success_msg "sphinx-build option '-W' not used for spellcheck in $filename, line $linenumber."
+                          log_warning_msg "sphinx-build option '-W' not used for spellcheck in $filename, line $linenumber."
+                          warning="1"
                       else
                           log_failure_msg "sphinx-build option '-W' missing in $filename, line $linenumber. Please add it."
                           exitstatus="1"
               if [ "$warning" = "0" ]; then
                   log_success_msg "Congratulations! No documentation problem(s) detected."
               else
-                  log_failure_msg "WARN No major documentation problem(s) detected but there are warnings!"
+                  log_warning_msg "No major documentation problem(s) detected but there are warnings!"
               fi
           else
               log_failure_msg "Please fix the detected documentation problem(s)!"