class RuboCop::OptionsValidator
def validate_compatibility
def validate_compatibility if only_includes_unneeded_disable? raise ArgumentError, 'Lint/UnneededDisable can not be used with --only.' end if except_syntax? raise ArgumentError, 'Syntax checking can not be turned off.' end unless boolean_or_empty_cache? raise ArgumentError, '-C/--cache argument must be true or false' end if no_offense_counts_without_auto_gen_config? raise ArgumentError, '--no-offense-counts can only be used together ' \ 'with --auto-gen-config.' end return if incompatible_options.size <= 1 raise ArgumentError, 'Incompatible cli options: ' \ "#{incompatible_options.inspect}" end