function parseRuleNames(text, enabled) {
    text = text.trim();

    if (!text) {
        return {'*': enabled};
    }

    return text.split(',').reduce(function(result, ruleName) {
        ruleName = ruleName.trim();
        if (ruleName) {
            result[ruleName] = enabled;
        }
        return result;
    }, {});
}
Parses rule names in enable/disable/ignore statements.

@param {String} text
@param {Boolean} enabled
@returns {Object}