Sha256: a8dd1ac72a67740c6297b4b00566a1b3960b33b451457ae4b89350ab95564277
Contents?: true
Size: 805 Bytes
Versions: 8
Compression:
Stored size: 805 Bytes
Contents
require 'rake_factory' require 'ruby_leiningen' require 'ruby_leiningen/plugins' require_relative '../mixins/directoried' module RakeLeiningen module Tasks class Lint < RakeFactory::Task include Mixins::Directoried default_name :lint default_description "Lint all clojure files." default_prerequisites ->(t) { t.ensure_task_name ? [t.ensure_task_name] : [] } parameter :config parameter :profile parameter :directory, default: '.' parameter :ensure_task_name, default: 'leiningen:ensure' action do |t| puts "Linting all clojure files..." in_directory(t.directory) do RubyLeiningen.eastwood( config: t.config, profile: t.profile) end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems