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.24.1 lib/rubocop/monkey_patches/team.rb
cookstyle-7.23.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.22.3 lib/rubocop/monkey_patches/team.rb
cookstyle-7.21.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.20.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.19.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.18.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.17.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.16.1 lib/rubocop/monkey_patches/team.rb
cookstyle-7.15.4 lib/rubocop/monkey_patches/team.rb
cookstyle-7.15.3 lib/rubocop/monkey_patches/team.rb
cookstyle-7.15.2 lib/rubocop/monkey_patches/team.rb
cookstyle-7.15.1 lib/rubocop/monkey_patches/team.rb
cookstyle-7.15.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.14.2 lib/rubocop/monkey_patches/team.rb
cookstyle-7.13.0 lib/rubocop/monkey_patches/team.rb
cookstyle-7.12.6 lib/rubocop/monkey_patches/team.rb
cookstyle-7.12.5 lib/rubocop/monkey_patches/team.rb
cookstyle-7.12.3 lib/rubocop/monkey_patches/team.rb
cookstyle-7.12.2 lib/rubocop/monkey_patches/team.rb