Skip to content

Commit

Permalink
🎨 catch information of Error-Prone
Browse files Browse the repository at this point in the history
  • Loading branch information
didebughu committed Feb 23, 2023
1 parent 2f6c08c commit a15d5d5
Show file tree
Hide file tree
Showing 2 changed files with 7,347 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/tool/javawarning.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

"""
javawarning, 获取java编译警告信息
Error Prone,增强java的类型分析
"""

import os
Expand Down Expand Up @@ -65,7 +66,8 @@ def analyze(self, params):
issues = list()
fi = open(build_log_path)
for line in fi.readlines():
if line.find(": warning: [") != -1 or line.find(": 警告: [") != -1:
if (line.find(": warning: [") != -1 or line.find(": 警告: [") != -1 or
line.find(": error: [") != -1 or line.find(": 错误: [") != -1):
infos = line.split(":")
path = infos[0].strip()[pos:]
line_num = int(infos[1].strip())
Expand Down
Loading

0 comments on commit a15d5d5

Please sign in to comment.