Class: Guard::Coffeelint

Inherits:
Plugin
  • Object
show all
Defined in:
lib/guard/coffeelint.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Coffeelint

Returns a new instance of Coffeelint.



9
10
11
12
13
# File 'lib/guard/coffeelint.rb', line 9

def initialize(options = {})
  super
  @config_file = options[:config_file]
  @default_paths = options[:paths] || ['.']
end

Instance Method Details

#run_allObject



27
28
29
# File 'lib/guard/coffeelint.rb', line 27

def run_all
  lint_and_report
end

#run_on_additions(paths) ⇒ Object



19
20
21
# File 'lib/guard/coffeelint.rb', line 19

def run_on_additions(paths)
  lint_and_report paths
end

#run_on_modifications(paths) ⇒ Object



23
24
25
# File 'lib/guard/coffeelint.rb', line 23

def run_on_modifications(paths)
  lint_and_report paths
end

#startObject



15
16
17
# File 'lib/guard/coffeelint.rb', line 15

def start
  UI.info "Guard::Coffeelint linting against #{@config_file}"
end