Sha256: b1249c3950aa2316702d823266cbc5f1da63a13a0b2e0734aa171e6f42976f94
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
class JavascriptLintRunner def initialize(dir, filter) @config = dir + '/jsl.conf' @dir = dir @filter = filter end def name return 'Javascript Lint' end def execute return `jsl -conf "#{@config}" -nologo -nofilelisting 2>&1` end def is_configured?(all_files) return all_files.include?(@config) end def should_run?(modified_files) return !(modified_files.detect { |file| @filter.filter(file) }).nil? || modified_files.include?(@config) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loris-0.0.15 | lib/tasks/javascript_lint/javascript_lint_runner.rb |