Sha256: 0e36ee48295a24dc308232e4dc41fef48a6810faa0f47cb200e95a1cf0e282fe

Contents?: true

Size: 561 Bytes

Versions: 16

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

require "rake"
require "git/lint"

module Git
  module Lint
    module Rake
      # Defines and installs Rake tasks for use in downstream projects.
      class Tasks
        include ::Rake::DSL

        def self.setup = new.install

        def initialize shell: CLI::Shell.new
          @shell = shell
        end

        def install
          desc "Run Git Lint"
          task :git_lint do
            shell.call ["--analyze"]
          end
        end

        private

        attr_reader :shell
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
git-lint-4.6.0 lib/git/lint/rake/tasks.rb
git-lint-4.5.0 lib/git/lint/rake/tasks.rb
git-lint-4.4.0 lib/git/lint/rake/tasks.rb
git-lint-4.3.0 lib/git/lint/rake/tasks.rb
git-lint-4.2.0 lib/git/lint/rake/tasks.rb
git-lint-4.1.0 lib/git/lint/rake/tasks.rb
git-lint-4.0.1 lib/git/lint/rake/tasks.rb
git-lint-4.0.0 lib/git/lint/rake/tasks.rb
git-lint-3.3.2 lib/git/lint/rake/tasks.rb
git-lint-3.3.1 lib/git/lint/rake/tasks.rb
git-lint-3.3.0 lib/git/lint/rake/tasks.rb
git-lint-3.2.0 lib/git/lint/rake/tasks.rb
git-lint-3.1.0 lib/git/lint/rake/tasks.rb
git-lint-3.0.2 lib/git/lint/rake/tasks.rb
git-lint-3.0.1 lib/git/lint/rake/tasks.rb
git-lint-3.0.0 lib/git/lint/rake/tasks.rb