Sha256: c71fea70e1a72fddd40c7fea3c11c737a13d2bb9fca51faa8a8aefd0a792f2d9
Contents?: true
Size: 508 Bytes
Versions: 4
Compression:
Stored size: 508 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
4 entries across 4 versions & 2 rubygems