|
From: <caw...@us...> - 2007-08-02 18:37:47
|
Revision: 2923
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2923&view=rev
Author: cawilliams
Date: 2007-08-02 11:37:42 -0700 (Thu, 02 Aug 2007)
Log Message:
-----------
only execute RubyLintVisitor if it's results won't be ignored. (this should avoid uneccesary CPU and memory usage for visitors whose results were just ignored).
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-08-02 17:54:52 UTC (rev 2922)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/parser/warnings/RubyLintVisitor.java 2007-08-02 18:37:42 UTC (rev 2923)
@@ -46,6 +46,13 @@
public List<CategorizedProblem> getProblems() {
return problems;
}
+
+ public boolean isIgnored() {
+ String value = getSeverity();
+ if (value != null && value.equals(RubyCore.IGNORE))
+ return true;
+ return false;
+ }
protected void createProblem(ISourcePosition position, String message) {
String value = getSeverity();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|