Sha256: 1cb65e266c436b1cc80539859e9dcee64443362cd90444d488d52a2f2a6c460d

Contents?: true

Size: 589 Bytes

Versions: 22

Compression:

Stored size: 589 Bytes

Contents

# frozen_string_literal: true

module Git
  module Lint
    module Configuration
      # Defines configuration content as the primary source of truth for use throughout the gem.
      Content = Struct.new(
        :action_analyze,
        :action_config,
        :action_help,
        :action_hook,
        :action_version,
        :analyze_sha,
        :analyzers,
        keyword_init: true
      ) do
        def initialize *arguments
          super
          freeze
        end

        def find_setting(id) = analyzers.find { |setting| setting.id == id }
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
git-lint-5.3.0 lib/git/lint/configuration/content.rb
git-lint-5.2.0 lib/git/lint/configuration/content.rb
git-lint-5.1.2 lib/git/lint/configuration/content.rb
git-lint-5.1.1 lib/git/lint/configuration/content.rb
git-lint-5.1.0 lib/git/lint/configuration/content.rb
git-lint-5.0.0 lib/git/lint/configuration/content.rb
git-lint-4.6.0 lib/git/lint/configuration/content.rb
git-lint-4.5.0 lib/git/lint/configuration/content.rb
git-lint-4.4.0 lib/git/lint/configuration/content.rb
git-lint-4.3.0 lib/git/lint/configuration/content.rb
git-lint-4.2.0 lib/git/lint/configuration/content.rb
git-lint-4.1.0 lib/git/lint/configuration/content.rb
git-lint-4.0.1 lib/git/lint/configuration/content.rb
git-lint-4.0.0 lib/git/lint/configuration/content.rb
git-lint-3.3.2 lib/git/lint/configuration/content.rb
git-lint-3.3.1 lib/git/lint/configuration/content.rb
git-lint-3.3.0 lib/git/lint/configuration/content.rb
git-lint-3.2.0 lib/git/lint/configuration/content.rb
git-lint-3.1.0 lib/git/lint/configuration/content.rb
git-lint-3.0.2 lib/git/lint/configuration/content.rb