[coreboot-gerrit] Change in coreboot[master]: util/lint/checkpatch_json: Fix match string

Naresh Solanki (Code Review) gerrit at coreboot.org
Wed Jun 20 11:24:32 CEST 2018


Naresh Solanki has uploaded this change for review. ( https://review.coreboot.org/27170


Change subject: util/lint/checkpatch_json: Fix match string
......................................................................

util/lint/checkpatch_json: Fix match string

Look for keyword 'ERROR:' , 'WARNING:' & 'FILE:' instead of the same without
colon(:).

Change-Id: Ib690ab34a1ffabc4f83642634fd34beea16a64dc
Signed-off-by: Naresh G Solanki <naresh.solanki at intel.com>
---
M util/lint/checkpatch_json.py
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/27170/1

diff --git a/util/lint/checkpatch_json.py b/util/lint/checkpatch_json.py
index 3254aae..fe2766f 100755
--- a/util/lint/checkpatch_json.py
+++ b/util/lint/checkpatch_json.py
@@ -38,11 +38,11 @@
 def parse_file(input_file):
     fp = open (input_file, "r")
     for line in fp:
-        if "ERROR" in line:
+        if "ERROR:" in line:
             msg_output = line.split("ERROR:")[1].strip()
-        elif "WARNING" in line:
+        elif "WARNING:" in line:
             msg_output = line.split("WARNING:")[1].strip()
-        elif "FILE" in line:
+        elif "FILE:" in line:
             temp = line.split("FILE:")
             file_path = temp[1].split(":")[0]
             line_number = temp[1].split(":")[1]

-- 
To view, visit https://review.coreboot.org/27170
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ib690ab34a1ffabc4f83642634fd34beea16a64dc
Gerrit-Change-Number: 27170
Gerrit-PatchSet: 1
Gerrit-Owner: Naresh Solanki <naresh.solanki at intel.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180620/d5628f90/attachment.html>


More information about the coreboot-gerrit mailing list