content: # -*- coding: utf-8 -*-
  
  """
      result
      ~~~~~~
  
      Implements result structure
  
      :author:    Feei <feei@feei.cn>
      :homepage:  https://github.com/WhaleShark-Team/cobra
      :license:   MIT, see LICENSE for more details.
      :copyright: Copyright (c) 2018 Feei. All rights reserved
  """
  
  
  class VulnerabilityResult:
      def __init__(self):
          self.id = ''
          self.file_path = None
          self.analysis = ''
  
          self.rule_name = ''
          self.language = ''
          self.line_number = None
          self.code_content = None
          self.match_result = None
          self.level = None
          self.commit_time = 'Unknown'
          self.commit_author = 'Unknown'
  
      def convert_to_dict(self):
          _dict = {}
          _dict.update(self.__dict__)
          return _dict
  