Sha256: 6368f06a88bce70aaf1bac17b4106efa6572ddd8f6ba07934208d84aa46a074f

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

# frozen_string_literal: true

module Gitlab
  module Dangerfiles
    class Config
      # @!attribute code_size_thresholds
      #   @return [{ high: Integer, medium: Integer }] a hash of the form +{ high: 42, medium: 12 }+ where +:high+ is the lines changed threshold which triggers an error, and +:medium+ is the lines changed threshold which triggers a warning. Also, see +DEFAULT_CHANGES_SIZE_THRESHOLDS+ for the format of the hash.
      attr_accessor :code_size_thresholds

      DEFAULT_CHANGES_SIZE_THRESHOLDS = { high: 2_000, medium: 500 }.freeze

      def initialize
        @code_size_thresholds = DEFAULT_CHANGES_SIZE_THRESHOLDS
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gitlab-dangerfiles-2.0.0 lib/gitlab/dangerfiles/config.rb