Sha256: 938a98b6da39aa6363ceb4e6ed2754612e91f79da2ddc5b9ce204004192748e9
Contents?: true
Size: 390 Bytes
Versions: 9
Compression:
Stored size: 390 Bytes
Contents
module Overcommit::Hook::PreCommit # Runs `coffeelint` against any modified CoffeeScript files. class CoffeeLint < Base def run unless in_path?('coffeelint') return :warn, 'Run `npm install -g coffeelint`' end result = execute(%w[coffeelint --quiet] + applicable_files) return :good if result.success? [:bad, result.stdout] end end end
Version data entries
9 entries across 9 versions & 1 rubygems