[javascriptlint-commit] SF.net SVN: javascriptlint: [183] trunk
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2008-03-31 21:56:59
|
Revision: 183
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=183&view=rev
Author: matthiasmiller
Date: 2008-03-31 14:56:57 -0700 (Mon, 31 Mar 2008)
Log Message:
-----------
Fix incorrect line number in error messages.
Modified Paths:
--------------
trunk/jsl.py
trunk/pyjsl/jsparse.py
Modified: trunk/jsl.py
===================================================================
--- trunk/jsl.py 2008-03-31 21:50:09 UTC (rev 182)
+++ trunk/jsl.py 2008-03-31 21:56:57 UTC (rev 183)
@@ -56,7 +56,7 @@
def _lint(paths, conf):
def lint_error(path, line, col, errname):
_lint_results['warnings'] = _lint_results['warnings'] + 1
- print '%s(%i): %s' % (path, line, errname)
+ print '%s(%i): %s' % (path, line+1, errname)
pyjsl.lint.lint_files(paths, lint_error, conf=conf)
def _resolve_paths(path, recurse):
Modified: trunk/pyjsl/jsparse.py
===================================================================
--- trunk/pyjsl/jsparse.py 2008-03-31 21:50:09 UTC (rev 182)
+++ trunk/pyjsl/jsparse.py 2008-03-31 21:56:57 UTC (rev 183)
@@ -13,6 +13,7 @@
))
class NodePos:
+ " Represents zero-based line and column number. "
def __init__(self, line, col):
self.line = line
self.col = col
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|