Sha256: dd11acc2e51977c9de25f72254de5e29e56c09cfe7c09b28c053d30fad8fc837

Contents?: true

Size: 511 Bytes

Versions: 3

Compression:

Stored size: 511 Bytes

Contents

require 'face_control/comment'

module FaceControl
  module Checkers
    class Comments

      def command(filenames)
        "grep -inEH '(todo|fixme)' #{filenames}"
      end

      def parse(command_output)
        command_output.lines.map do |line|
          file, line_num = line.split(":", 3)
          Comment.new(
            file: file,
            line: line_num,
            text: "Do not bury this task in code. Do it now or create a JIRA issue."
          )
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
face_control-0.8.2 lib/face_control/checkers/comments.rb
face_control-0.8.1 lib/face_control/checkers/comments.rb
face_control-0.8.0 lib/face_control/checkers/comments.rb