       return callback(error) if error?
 
       if result.exitCode == 0 || result.exitCode == 1
-        violations = @parseDiagnostics(result.stdout)
+        violations = @parseLog(result.stdout)
         callback(null, violations)
       else
         callback(new Error("Process exited with code #{result.exitCode}"))
 
-  parseDiagnostics: (log) ->
+  parseLog: (log) ->
     # Example of erlc output
     # $ erlc <options> hello.erl
     # hello.erl:3: function goofy/1 undefined          # an error

    command.push('+warn_export_vars')
    command.push('+strong_validation')
    command.push('+report')
    command.push(fileFullPath)
    # console.log(command.join(' ')) # Show the command
    command

path = require 'path'
{Range, Point} = require 'atom'
CommandRunner = require '../command-runner'
Violation = require '../violation'

ERROR_PATTERN = ///
^(.+):(\d+):  # file / line
\s*([^]+) # message
///
