code: def formatWarnings(self, warnings):
          
          lines = []
          for modulename in sorted(warnings):
              lines.append(self.prefixModuleName + modulename)
              lines.extend(sorted(warnings[modulename],
                           key=lambda x: x.split(":")[1]))
  
          return "\n".join(lines)
docs: Format warnings to a list of results.
  
          @param warnings: a dict of warnings produced by parseWarnings
          @return: a list of warnings in string