class RuboCop::Cop::Team
Public Instance Methods
Source
# File lib/rubocop/monkey_patches/team.rb, line 13 def roundup_relevant_cops(processed_source) cops.select do |cop| next true if processed_source.comment_config.cop_opted_in?(cop) next false if cop.excluded_file?(processed_source.file_path) next false unless @registry.enabled?(cop, @config) support_target_ruby_version?(cop) && support_target_rails_version?(cop) && support_target_chef_version?(cop) end end
START COOKSTYLE MODIFICATION
Source
# File lib/rubocop/monkey_patches/team.rb, line 6 def support_target_chef_version?(cop) return true unless cop.class.respond_to?(:support_target_chef_version?) cop.class.support_target_chef_version?(cop.target_chef_version) end