function getConsideredRuleIds(args) {
	let ruleIds;

	if (args.length) {
		const ruleDir = join(__dirname, "../lib/rules");

		ruleIds = args
			.filter(
				arg =>
					relative(arg, ruleDir) === ".." &&
					basename(arg) !== "index.js",
			)
			.map(ruleFile => basename(ruleFile, ".js"));
	} else {
		ruleIds = rules.keys();
	}
	return new Set(ruleIds);
}
Returns the names of the rules whose paths were specified in the command line.
If no rule paths were specified, the names of all built-in rules are returned.
@param {string[]} args The command line arguments without options.
@returns {Set<string>} The names of the rules to be considered for the current run.