Sha256: 4dee099b0e2a5b0e8de17c6c50e46994a8675b0e6d6ea1f23cddc02da3312260

Contents?: true

Size: 489 Bytes

Versions: 11

Compression:

Stored size: 489 Bytes

Contents

# frozen_string_literal: true

require "rake"
require "git/lint"

module Git
  module Lint
    module Rake
      class Tasks
        include ::Rake::DSL

        def self.setup
          new.install
        end

        def initialize cli: CLI
          @cli = cli
        end

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

        private

        attr_reader :cli
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
git-lint-2.2.1 lib/git/lint/rake/tasks.rb
git-lint-2.2.0 lib/git/lint/rake/tasks.rb
git-lint-2.1.0 lib/git/lint/rake/tasks.rb
git-lint-2.0.0 lib/git/lint/rake/tasks.rb
git-lint-1.4.0 lib/git/lint/rake/tasks.rb
git-lint-1.3.0 lib/git/lint/rake/tasks.rb
git-lint-1.2.0 lib/git/lint/rake/tasks.rb
git-lint-1.1.1 lib/git/lint/rake/tasks.rb
git-lint-1.1.0 lib/git/lint/rake/tasks.rb
git-lint-1.0.1 lib/git/lint/rake/tasks.rb
git-lint-1.0.0 lib/git/lint/rake/tasks.rb