Module: RuboCop::CLI::Command::CopNames Private

Included in:
Explain, ShowCops, ShowDocsUrl, MCP::ExplainTool
Defined in:
lib/rubocop/cli/command/cop_names.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Shared handling for commands that take a list of cop names.

Validation happens here rather than during option parsing because the registry is not complete until the configuration has been loaded, which is also why --only and --except are validated from the runner.