code: def parseWarnings(self, result):
          
          warnings = {}
          currentModule = None
          warningsCurrentModule = []
          for line in result.splitlines():
              if line.startswith(self.prefixModuleName):
                  # Save results for previous module
                  if currentModule:
                      warnings[currentModule] = set(warningsCurrentModule)
                  # Initial results for current module
                  moduleName = line.replace(self.prefixModuleName, "")
                  currentModule = moduleName
                  warningsCurrentModule = []
              elif re.search(self.regexLineStart, line):
                  warningsCurrentModule.append(line)
              else:
                  if warningsCurrentModule:
                      warningsCurrentModule[-1] += "\n" + line
          # Save warnings for last module
          if currentModule:
              warnings[currentModule] = set(warningsCurrentModule)
          return warnings
docs: Transform result in string to a dict object.
  
          @param result: a list of warnings in string
          @return: a dict of warnings