yetus-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bus...@apache.org
Subject yetus git commit: YETUS-309 pylint plugin false positives
Date Thu, 18 Aug 2016 16:37:38 GMT
Repository: yetus
Updated Branches:
  refs/heads/master 6f3aa7ae3 -> 2111a011a


YETUS-309 pylint plugin false positives

Signed-off-by: Sean Busbey <busbey@apache.org>


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

Branch: refs/heads/master
Commit: 2111a011abc0e74cd0a44bdd71ddbbd5d57bd525
Parents: 6f3aa7a
Author: Dima Spivak <dspivak@cloudera.com>
Authored: Wed Aug 17 11:15:50 2016 -0700
Committer: Sean Busbey <busbey@apache.org>
Committed: Thu Aug 18 09:36:35 2016 -0700

----------------------------------------------------------------------
 precommit/test-patch.d/pylint.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/yetus/blob/2111a011/precommit/test-patch.d/pylint.sh
----------------------------------------------------------------------
diff --git a/precommit/test-patch.d/pylint.sh b/precommit/test-patch.d/pylint.sh
index 7decb96..e28ca58 100755
--- a/precommit/test-patch.d/pylint.sh
+++ b/precommit/test-patch.d/pylint.sh
@@ -151,7 +151,8 @@ function pylint_postapply
             pylint > "${PATCH_DIR}/diff-patch-pylint.txt"
   numPrepatch=$(${GREP} -c "^.*:.*: \[.*\] " "${PATCH_DIR}/branch-pylint-result.txt")
   numPostpatch=$(${GREP} -c "^.*:.*: \[.*\] " "${PATCH_DIR}/patch-pylint-result.txt")
-  diffPostpatch=$(${GREP} -c "^.*:.*: \[.*\] " "${PATCH_DIR}/diff-patch-pylint.txt")
+  # Exclude Pylint messages from the information category to avoid false positives (see YETUS-309).
+  diffPostpatch=$(${GREP} -c "^.*:.*: \[[^I].*\] " "${PATCH_DIR}/diff-patch-pylint.txt")
 
   ((fixedpatch=numPrepatch-numPostpatch+diffPostpatch))
 


Mime
View raw message