forked from phoedos/pmd
Finished printing Analysis Results. Also, added getPriority() to Rule and AbstractRule.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@1331 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@ -161,6 +161,18 @@ public abstract class AbstractRule
|
||||
return m_priority;
|
||||
}
|
||||
|
||||
/**
|
||||
*********************************************************************************
|
||||
*
|
||||
* Returns the rule's priority name that is used for including the rule in reports and analysis.
|
||||
*
|
||||
* @return A member of PRIORITIES.
|
||||
*/
|
||||
public String getPriorityName()
|
||||
{
|
||||
return PRIORITIES[getPriority() - 1];
|
||||
}
|
||||
|
||||
/**
|
||||
*********************************************************************************
|
||||
*
|
||||
|
@ -25,5 +25,6 @@ public interface Rule {
|
||||
public boolean include();
|
||||
public void setInclude(boolean include);
|
||||
public int getPriority();
|
||||
public String getPriorityName();
|
||||
public void setPriority(int priority);
|
||||
}
|
||||
|
Reference in New Issue
Block a user