You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@yetus.apache.org by aw...@apache.org on 2015/10/10 18:00:30 UTC

[1/2] yetus git commit: YETUS-67. XML plugin raises a false alarm against a removed file

Repository: yetus
Updated Branches:
  refs/heads/master 82b4d0a54 -> c44fd145c


YETUS-67. XML plugin raises a false alarm against a removed file

Signed-off-by: Allen Wittenauer <aw...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/0cd32604
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/0cd32604
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/0cd32604

Branch: refs/heads/master
Commit: 0cd326049c7b91daa63f88c90e37e2208a733c43
Parents: 82b4d0a
Author: Kengo Seki <se...@gmail.com>
Authored: Sun Oct 11 00:10:10 2015 +0900
Committer: Allen Wittenauer <aw...@apache.org>
Committed: Sat Oct 10 08:57:49 2015 -0700

----------------------------------------------------------------------
 dev-support/test-patch.d/xml.sh | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/0cd32604/dev-support/test-patch.d/xml.sh
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.d/xml.sh b/dev-support/test-patch.d/xml.sh
index b59df5c..29df165 100755
--- a/dev-support/test-patch.d/xml.sh
+++ b/dev-support/test-patch.d/xml.sh
@@ -53,12 +53,11 @@ function xml_postcompile
 
   pushd "${BASEDIR}" >/dev/null
   for i in ${CHANGED_FILES}; do
-    if [[ ! ${i} =~ \.xml$ ]]; then
-      continue
-    fi
-    ${js} -e "XMLDocument(arguments[0])" "${i}" >> "${PATCH_DIR}/xml.txt" 2>&1
-    if [[ $? != 0 ]]; then
-      ((count=count+1))
+    if [[ ${i} =~ \.xml$ && -f ${i} ]]; then
+      ${js} -e "XMLDocument(arguments[0])" "${i}" >> "${PATCH_DIR}/xml.txt" 2>&1
+      if [[ $? != 0 ]]; then
+        ((count=count+1))
+      fi
     fi
   done
 


[2/2] yetus git commit: YETUS-68. Shellcheck plugin shows a warning against a removed file

Posted by aw...@apache.org.
YETUS-68. Shellcheck plugin shows a warning against a removed file

Signed-off-by: Allen Wittenauer <aw...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/yetus/repo
Commit: http://git-wip-us.apache.org/repos/asf/yetus/commit/c44fd145
Tree: http://git-wip-us.apache.org/repos/asf/yetus/tree/c44fd145
Diff: http://git-wip-us.apache.org/repos/asf/yetus/diff/c44fd145

Branch: refs/heads/master
Commit: c44fd145c568808fe882ecb5fb189e1c5a475e98
Parents: 0cd3260
Author: Kengo Seki <se...@gmail.com>
Authored: Sun Oct 11 00:14:30 2015 +0900
Committer: Allen Wittenauer <aw...@apache.org>
Committed: Sat Oct 10 08:59:27 2015 -0700

----------------------------------------------------------------------
 dev-support/test-patch.d/shellcheck.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/c44fd145/dev-support/test-patch.d/shellcheck.sh
----------------------------------------------------------------------
diff --git a/dev-support/test-patch.d/shellcheck.sh b/dev-support/test-patch.d/shellcheck.sh
index 3cc7f6e..a3c08cf 100755
--- a/dev-support/test-patch.d/shellcheck.sh
+++ b/dev-support/test-patch.d/shellcheck.sh
@@ -122,7 +122,9 @@ function shellcheck_postapply
   echo "Running shellcheck against all identifiable shell scripts"
   # we re-check this in case one has been added
   for i in $(shellcheck_private_findbash); do
-    ${SHELLCHECK} -f gcc "${i}" >> "${PATCH_DIR}/patch-shellcheck-result.txt"
+    if [[ -f ${i} ]]; then
+      ${SHELLCHECK} -f gcc "${i}" >> "${PATCH_DIR}/patch-shellcheck-result.txt"
+    fi
   done
 
   if [[ ! -f "${PATCH_DIR}/branch-shellcheck-result.txt" ]]; then