public abstract class CustomWhiteListRule extends PerformanceCareRule implements FUSRule
Base class for custom validation rules.
If your data cannot be validated with enumerated values or by a regexp,
inherit the class and implement PerformanceCareRule.doValidate(String, EventContext)
.
For more information see SensitiveDataValidator
.
Example:
ClassNameRuleValidator
,
LangCustomRuleValidator
, etc.
SensitiveDataValidator
Modifier and Type | Field and Description |
---|---|
static ExtensionPointName<CustomWhiteListRule> |
EP_NAME |
EMPTY_ARRAY, FALSE, TRUE
Constructor and Description |
---|
CustomWhiteListRule() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
acceptRuleId(java.lang.String ruleId) |
protected static ValidationResultType |
acceptWhenReportedByJetBrainsPlugin(EventContext context) |
protected static ValidationResultType |
acceptWhenReportedByPluginFromPluginRepository(EventContext context) |
protected java.lang.String |
getEventDataField(EventContext context,
java.lang.String name) |
protected Language |
getLanguage(EventContext context) |
protected static boolean |
isPluginFromPluginRepository(java.lang.String plugin) |
protected static boolean |
isThirdPartyValue(java.lang.String data) |
doValidate, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isValidRule, validate
public static final ExtensionPointName<CustomWhiteListRule> EP_NAME
public abstract boolean acceptRuleId(java.lang.String ruleId)
protected static ValidationResultType acceptWhenReportedByPluginFromPluginRepository(EventContext context)
protected static ValidationResultType acceptWhenReportedByJetBrainsPlugin(EventContext context)
protected static boolean isThirdPartyValue(java.lang.String data)
protected static boolean isPluginFromPluginRepository(java.lang.String plugin)
protected Language getLanguage(EventContext context)
protected java.lang.String getEventDataField(EventContext context, java.lang.String name)