Sha256: 8b11cdd55ed5d3db92b9bc2002b93fc575f9ee32a1c82d9db0cbfede6918a1bf

Contents?: true

Size: 403 Bytes

Versions: 90

Compression:

Stored size: 403 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  class Config
    # This is a copy of the #target_rails_version method from RuboCop
    def target_chef_version
      @target_chef_version ||=
        if for_all_cops['TargetChefVersion']
          for_all_cops['TargetChefVersion'].to_f
        else
          99 # just set a high number so we don't need to update this later
        end
    end
  end
end

Version data entries

90 entries across 90 versions & 1 rubygems

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