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
# File 'lib/guard/coffeelint.rb', line 9

def initialize(options = {})
  super
  @config_file = options[:config_file]
end

Instance Method Details

#run_allObject



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

def run_all
  lint_and_report
end

#run_on_additions(paths) ⇒ Object



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

def run_on_additions(paths)
  lint_and_report paths
end

#run_on_modifications(paths) ⇒ Object



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

def run_on_modifications(paths)
  lint_and_report paths
end

#startObject



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

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