Skip to content

Commit

Permalink
[Tools] Update code checker (Samsung#476)
Browse files Browse the repository at this point in the history
* [Tools] Update code checker

* Update PRManager.py
  • Loading branch information
JoonghyunCho authored and WonyoungChoi committed Sep 18, 2018
1 parent 0dd6cf0 commit 7a46ec6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tools/scripts/CodeChecker/PRManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@ def __init__(self, token, prNumber):
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:]
Expand Down

0 comments on commit 7a46ec6

Please sign in to comment.