|
From: <caw...@us...> - 2007-05-17 18:15:09
|
Revision: 2501
http://svn.sourceforge.net/rubyeclipse/?rev=2501&view=rev
Author: cawilliams
Date: 2007-05-17 11:15:06 -0700 (Thu, 17 May 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/warnings/RubyLintVisitor.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/warnings/RubyLintVisitor.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/warnings/RubyLintVisitor.java 2007-05-17 18:15:04 UTC (rev 2500)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/warnings/RubyLintVisitor.java 2007-05-17 18:15:06 UTC (rev 2501)
@@ -41,7 +41,7 @@
}
protected void createProblem(ISourcePosition position, String message) {
- String value = RubyCore.getOption(getOptionKey());
+ String value = getSeverity();
if (value != null && value.equals(RubyCore.IGNORE))
return;
CategorizedProblem problem;
@@ -51,6 +51,10 @@
problem = new Warning(position, message, getProblemID());
problems.add(problem);
}
+
+ protected String getSeverity() {
+ return RubyCore.getOption(getOptionKey());
+ }
@Override
protected Instruction visitNode(Node iVisited) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|