plugin/checkstyle/src/main/java/se/jguru/nazgul/tools/plugin/checkstyle/RuleUtil.java
public static String getName(String eventSrcName) {
        if (eventSrcName == null) {
            return null;
        }

        if (eventSrcName.endsWith("Check")) {
            eventSrcName = eventSrcName.substring(0, eventSrcName.length() - 5);
        }

        return eventSrcName.substring(eventSrcName.lastIndexOf('.') + 1);
    }
public static String getName(String eventSrcName) {
        if (eventSrcName == null) {
            return null;
        }

        if (eventSrcName.endsWith("Check")) {
            eventSrcName = eventSrcName.substring(0, eventSrcName.length() - 5);
        }

        return eventSrcName.substring(eventSrcName.lastIndexOf('.') + 1);
    }
Get the rule name from an audit event source name.

@param eventSrcName the audit event source name
@return the rule name, which is the class name without package and removed eventual "Check" suffix