[libgames-support] Fix some crashes in the style checker
- From: Michael Catanzaro <mcatanzaro src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgames-support] Fix some crashes in the style checker
- Date: Sat, 19 Sep 2015 23:08:15 +0000 (UTC)
commit 7a1d2a76af6b9e3c4ed1fb23675a99e21b23adb5
Author: Michael Catanzaro <mcatanzaro gnome org>
Date: Sat Sep 19 17:35:46 2015 -0500
Fix some crashes in the style checker
style-checker | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/style-checker b/style-checker
index 96d9e61..3b6276d 100755
--- a/style-checker
+++ b/style-checker
@@ -72,7 +72,7 @@ def main():
return len( getLineData( line ) )
def printIssue( line, msg ):
- print(getLineFileName( line ) + " => Line " + getLineNum( line ) + " " + msg)
+ print(getLineFileName( line ) + " => Line " + str(getLineNum( line )) + " " + msg)
for lineNum in range( 0, len( lines ) ):
@@ -145,9 +145,9 @@ def main():
if nIssues != 0:
if nIssues == 1:
- print("Guideline checker found " + nIssues + " issue...")
+ print("Guideline checker found " + str(nIssues) + " issue...")
else:
- print("Guideline checker found " + nIssues + "issues...")
+ print("Guideline checker found " + str(nIssues) + "issues...")
print("We strongly recommend you to fix these, to ignore use `git commit --no-verify`")
return -1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]