code: def to_result(self):
          
          text = [self.text]
          if self.note:
              text.append(self.note)
  
          return {
              'lnum': self.line_num,
              'col': self.column,
              'text': ' - '.join(text),
              'type': self.types.get(self.message_type, '')
          }
docs: Convert to the Linter.run return value