[TASK] validateRstFiles script: improve error message 68/52068/2
authorJosef Glatz <josefglatz@gmail.com>
Thu, 16 Mar 2017 21:26:37 +0000 (22:26 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Fri, 17 Mar 2017 13:16:43 +0000 (14:16 +0100)
Improve the error message for non valid index keywords in
changelog RST files.

Resolves: #80310
Releases: master
Change-Id: Ibca4f135a7f43c7c936fd57c14b1f7b7fc0a9d1f
Reviewed-on: https://review.typo3.org/52068
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Build/Scripts/validateRstFiles.sh

index 64c9649..c676e5a 100755 (executable)
@@ -43,7 +43,7 @@ for i in `find typo3/sysext/core/Documentation/Changelog -name "*.rst" -type f`;
 # the last line in the checked file
         if ! [[ "$fileContent" =~ '.. index:: '((TypoScript|TSConfig|TCA|FlexForm|LocalConfiguration|Fluid|FAL|Database|JavaScript|PHP-API|Frontend|Backend|CLI|RTE|ext:([a-z|A-Z|_|0-9]*))([,|[:space:]]{2})?)+$ ]]; then
             INDEX="no or wrong index"
-            index_message="insert '.. index:: <at least one keyword>' at last line of the file"
+            index_message="insert '.. index:: <at least one valid keyword>' at last line of the file. See Build/Scripts/validateRstFiles.sh for allowed keywords"
             outputFileToStream=1;
         else
             INDEX=""