Sha256: c7f1eede8329d84ebe0796f01111d0b59ac1b11d110a52b1a90bef5721951490

Contents?: true

Size: 659 Bytes

Versions: 82

Compression:

Stored size: 659 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    class Team
      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

      ### START COOKSTYLE MODIFICATION
      def roundup_relevant_cops(filename)
        cops.reject do |cop|
          cop.excluded_file?(filename) ||
            !support_target_ruby_version?(cop) ||
            !support_target_chef_version?(cop) ||
            !support_target_rails_version?(cop)
        end
      end
      ### END COOKSTYLE MODIFICATION
    end
  end
end

Version data entries

82 entries across 82 versions & 1 rubygems

Version Path
cookstyle-7.32.8 lib/rubocop/monkey_patches/team.rb
cookstyle-7.32.7 lib/rubocop/monkey_patches/team.rb
cookstyle-7.32.2 lib/rubocop/monkey_patches/team.rb
cookstyle-7.32.1 lib/rubocop/monkey_patches/team.rb
cookstyle-7.32.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.31.9 lib/rubocop/monkey_patches/team.rb
cookstyle-7.31.7 lib/rubocop/monkey_patches/team.rb
cookstyle-7.31.3 lib/rubocop/monkey_patches/team.rb
cookstyle-7.31.1 lib/rubocop/monkey_patches/team.rb
cookstyle-7.31.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.30.4 lib/rubocop/monkey_patches/team.rb
cookstyle-7.30.3 lib/rubocop/monkey_patches/team.rb
cookstyle-7.30.1 lib/rubocop/monkey_patches/team.rb
cookstyle-7.28.2 lib/rubocop/monkey_patches/team.rb
cookstyle-7.27.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.26.1 lib/rubocop/monkey_patches/team.rb
cookstyle-7.25.10 lib/rubocop/monkey_patches/team.rb
cookstyle-7.25.9 lib/rubocop/monkey_patches/team.rb
cookstyle-7.25.8 lib/rubocop/monkey_patches/team.rb
cookstyle-7.25.6 lib/rubocop/monkey_patches/team.rb