|
From: <caw...@us...> - 2007-09-06 15:47:08
|
Revision: 3096
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=3096&view=rev
Author: cawilliams
Date: 2007-09-06 08:44:39 -0700 (Thu, 06 Sep 2007)
Log Message:
-----------
fix positioning of error
Modified Paths:
--------------
trunk/com.aptana.rdt/src/com/aptana/rdt/internal/parser/warnings/ConstantNamingConvention.java
Modified: trunk/com.aptana.rdt/src/com/aptana/rdt/internal/parser/warnings/ConstantNamingConvention.java
===================================================================
--- trunk/com.aptana.rdt/src/com/aptana/rdt/internal/parser/warnings/ConstantNamingConvention.java 2007-09-06 15:43:07 UTC (rev 3095)
+++ trunk/com.aptana.rdt/src/com/aptana/rdt/internal/parser/warnings/ConstantNamingConvention.java 2007-09-06 15:44:39 UTC (rev 3096)
@@ -4,7 +4,6 @@
import org.jruby.evaluator.Instruction;
import org.jruby.lexer.yacc.IDESourcePosition;
import org.jruby.lexer.yacc.ISourcePosition;
-import org.rubypeople.rdt.core.RubyCore;
import org.rubypeople.rdt.core.parser.warnings.RubyLintVisitor;
import com.aptana.rdt.AptanaRDTPlugin;
@@ -26,7 +25,7 @@
String name = iVisited.getName();
if (!name.toUpperCase().equals(name)) {
ISourcePosition pos = iVisited.getPosition();
- IDESourcePosition duh = new IDESourcePosition("", pos.getStartLine(), pos.getEndLine(), pos.getStartOffset(), pos.getStartOffset() + name.length() - 1);
+ IDESourcePosition duh = new IDESourcePosition("", pos.getStartLine(), pos.getEndLine(), pos.getStartOffset(), pos.getStartOffset() + name.length());
createProblem(duh, "Constant name doesn't match ALL_CAPS_WITH_UNDERSCORES convention: " + name);
}
return super.visitConstDeclNode(iVisited);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|