Class: FaceControl::Checkers::Comments
- Inherits:
-
Object
- Object
- FaceControl::Checkers::Comments
- Defined in:
- lib/face_control/checkers/comments.rb
Instance Method Summary collapse
Instance Method Details
#command(filenames) ⇒ Object
7 8 9 |
# File 'lib/face_control/checkers/comments.rb', line 7 def command(filenames) "grep -inEH '(todo|fixme)' #{filenames}" end |
#parse(command_output) ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/face_control/checkers/comments.rb', line 11 def parse(command_output) command_output.lines.map do |line| file, line_num = line.split(":", 3) Comment.new( file: file, line: line_num.to_i, text: "Do not bury this task in code. Do it now or create a JIRA issue." ) end end |