public static String formatSummary(long numFiles,long numSkipped,long numErrors,long numWarnings){
  long numFilesAnalyzed=numFiles - numSkipped;
  long numViolations=numErrors + numWarnings;
  return String.format("%nAnalyzed %s, skipped %s, and detected %s (%s, %s).%n",pluralize(numFilesAnalyzed,Messages.FILE_KEY,Messages.FILES_KEY),pluralize(numSkipped,Messages.FILE_KEY,Messages.FILES_KEY),pluralize(numViolations,Messages.SINGLE_VIOLATION_KEY,Messages.MULTI_VIOLATIONS_KEY),pluralize(numErrors,Messages.ERROR,Messages.ERRORS_KEY),pluralize(numWarnings,Messages.WARNING,Messages.WARNINGS_KEY));
}

public static String formatSummary ( long numFiles , long numSkipped , long numErrors , long numWarnings ) { long numFilesAnalyzed = numFiles - numSkipped ; long numViolations = numErrors + numWarnings ; return String . format ( "%nAnalyzed %s, skipped %s, and detected %s (%s, %s).%n" , pluralize ( numFilesAnalyzed , Messages . FILE_KEY , Messages . FILES_KEY ) , pluralize ( numSkipped , Messages . FILE_KEY , Messages . FILES_KEY ) , pluralize ( numViolations , Messages . SINGLE_VIOLATION_KEY , Messages . MULTI_VIOLATIONS_KEY ) , pluralize ( numErrors , Messages . ERROR , Messages . ERRORS_KEY ) , pluralize ( numWarnings , Messages . WARNING , Messages . WARNINGS_KEY ) ) ; }
generate the canonical summary string indicating the number of files analyzed and skipped , with violation info .
