Sha256: 9a918a2f807e17a0bcd93c915d1a048657843682458b22fd3fb3523c4de5440c

Contents?: true

Size: 633 Bytes

Versions: 13

Compression:

Stored size: 633 Bytes

Contents

#!/usr/bin/env ruby
require 'yaml'
require 'optparse'
require_relative '../lib/learn_linter.rb'

if ARGV.length == 0
  dir = Dir.pwd
  lint = LearnLinter.new(dir).lint_directory
elsif ARGV.length == 1 && ARGV[0] == "quiet"
  dir = File.expand_path(File.dirname(File.dirname(__FILE__)))
  lint = LearnLinter.new(dir, "quiet")
elsif ARGV.length > 1 && ARGV[1] == "quiet"
  lint = LearnLinter.new(ARGV[0], "quiet").lint_directory
elsif ARGV.length > 1 && ARGV[1] != "quiet"
  puts "please use 'learn-lint directory_name quiet' or 'learn-lint directory_name"
elsif ARGV.length == 1
  lint = LearnLinter.new(ARGV[0]).lint_directory
end


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
learn_linter-1.7.3 bin/learn-lint
learn_linter-1.7.2 bin/learn-lint
learn_linter-1.7.1 bin/learn-lint
learn_linter-1.7.0 bin/learn-lint
learn_linter-1.6.9 bin/learn-lint
learn_linter-1.6.8 bin/learn-lint
learn_linter-1.6.7 bin/learn-lint
learn_linter-1.6.5 bin/learn-lint
learn_linter-1.6.4 bin/learn-lint
learn_linter-1.6.3 bin/learn-lint
learn_linter-1.6.2 bin/learn-lint
learn_linter-1.6.1 bin/learn-lint
learn_linter-1.6.0 bin/learn-lint