Package edu.umd.cs.findbugs
Class BugRanker
java.lang.Object
edu.umd.cs.findbugs.BugRanker
Bug rankers are used to compute a bug rank for each bug instance. Bug ranks
1-20 are for bugs that are visible to users. Bug rank 1 is more the most
relevant/scary bugs. A bug rank greater than 20 is for issues that should not
be shown to users.
The following bug rankers may exist:
- core bug ranker (loaded from etc/bugrank.txt)
- a bug ranker for each plugin (loaded from <plugin>/etc/bugrank.txt)
- A global adjustment ranker (loaded from plugins/adjustBugrank.txt)
- global adjustment bug ranker
- core bug ranker
- global adjustment bug ranker
- plugin adjustment bug ranker
- core bug ranker
- Bug patterns, in search order across bug rankers
- Bug kinds, in search order across bug rankers
- Bug categories, in search order across bug rankers
- Author:
- Bill Pugh
- See Also:
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic int
findRank
(BugInstance bug) static int
findRank
(BugPattern bugPattern, int priority) static int
findRank
(BugPattern pattern, DetectorFactory detectorFactory) static void
trimToMaxRank
(BugCollection origCollection, int maxRank)
-
Field Details
-
VISIBLE_RANK_MAX
public static final int VISIBLE_RANK_MAXMaximum value for user visible ranks (least relevant)- See Also:
-
VISIBLE_RANK_MIN
public static final int VISIBLE_RANK_MINMinimum value for user visible ranks (most relevant)- See Also:
-
FILENAME
- See Also:
-
ADJUST_FILENAME
- See Also:
-
-
Method Details
-
findRank
-
findRank
-
findRank
-
trimToMaxRank
-