[javascriptlint-commit] SF.net SVN: javascriptlint:[206] trunk/pyjsl/warnings.py
Status: Beta
Brought to you by:
matthiasmiller
|
From: <mat...@us...> - 2008-08-15 19:53:51
|
Revision: 206
http://javascriptlint.svn.sourceforge.net/javascriptlint/?rev=206&view=rev
Author: matthiasmiller
Date: 2008-08-15 19:53:49 +0000 (Fri, 15 Aug 2008)
Log Message:
-----------
fix duplicate meaningless_block warning
Modified Paths:
--------------
trunk/pyjsl/warnings.py
Modified: trunk/pyjsl/warnings.py
===================================================================
--- trunk/pyjsl/warnings.py 2008-08-15 15:14:03 UTC (rev 205)
+++ trunk/pyjsl/warnings.py 2008-08-15 19:53:49 UTC (rev 206)
@@ -31,7 +31,6 @@
'with_statement': 'with statement hides undeclared variables; use temporary variable instead',
'useless_comparison': 'useless comparison; comparing identical expressions',
'use_of_label': 'use of label',
- 'meaningless_block': 'meaningless block; curly braces have no impact',
'misplaced_regex': 'regular expressions should be preceded by a left parenthesis, assignment, colon, or comma',
'assign_to_function_call': 'assignment to a function call',
'ambiguous_else_stmt': 'the else statement could be matched with one of multiple if statements (use curly braces to indicate intent',
@@ -223,11 +222,6 @@
def use_of_label(node):
raise LintWarning, node
-@lookfor(tok.LC)
-def meaningless_block(node):
- if node.parent and node.parent.kind == tok.LC:
- raise LintWarning, node
-
@lookfor((tok.OBJECT, op.REGEXP))
def misplaced_regex(node):
if node.parent.kind == tok.NAME and node.parent.opcode == op.SETNAME:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|