From: Jay Cho Date: Tue, 18 Sep 2018 08:38:11 +0000 (+0900) Subject: [Tools] Update code checker (#476) X-Git-Tag: 5.0.0.14562~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7a46ec65b2a0c129b78f2ff706108a8477699de4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Tools] Update code checker (#476) * [Tools] Update code checker * Update PRManager.py --- diff --git a/tools/scripts/CodeChecker/PRManager.py b/tools/scripts/CodeChecker/PRManager.py index 9035ff2..1f20ca0 100644 --- a/tools/scripts/CodeChecker/PRManager.py +++ b/tools/scripts/CodeChecker/PRManager.py @@ -15,9 +15,11 @@ class PRManager: self.fileDiffHunkPairs = {} for file in self.changedFiles: + if file.patch is None: + continue _patchLines = file.patch.split("\n") self._CreatePositionMap(file, _patchLines) - _patchLines[:] = [line for line in _patchLines if "@@" in line] + _patchLines[:] = [line for line in _patchLines if "@@ " in line] _diffLines = [] for hunkline in _patchLines: hunkline = hunkline[2:]