Sha256: b90e99f2b6a9786cc2b9231141cd77331174acfc39d45516f65679bfb4c84381
Contents?: true
Size: 606 Bytes
Versions: 11
Compression:
Stored size: 606 Bytes
Contents
require 'json' require 'face_control/comment' module FaceControl module Checkers class CoffeeLint def relevant_globs %w(*.coffee) end def command(filenames) "coffeelint --reporter raw #{filenames}" end def parse(command_output) JSON.parse(command_output).map do |file, problems| problems.map do |problem| Comment.new( file: file, line: problem['lineNumber'], text: "(#{problem['level']}) #{problem['message']}" ) end end end end end end
Version data entries
11 entries across 11 versions & 1 rubygems