Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 669a4a405828283a61660a6b2d41fdd12f39db7e https://github.com/WebKit/WebKit/commit/669a4a405828283a61660a6b2d41fdd12f39db7e Author: David Kilzer <ddkil...@apple.com> Date: 2024-02-09 (Fri, 09 Feb 2024)
Changed paths: M Makefile.shared M Tools/Scripts/build-and-analyze M Tools/Scripts/generate-static-analysis-archive Log Message: ----------- Generate project-specific results with clang static analyzer https://bugs.webkit.org/show_bug.cgi?id=269017 <rdar://122578881> Reviewed by Jonathan Bedard. * Makefile.shared: (analyze): - Instead of de-duping issues across all projects, only de-dupe issues within each project by creating a StaticAnalyzerReports folder and moving all the reports into it. * Tools/Scripts/build-and-analyze: (main): - Add --id-string argument to the generate-static-analysis-archive command so that a results.html file is generated. * Tools/Scripts/generate-static-analysis-archive: (get_project_name): Delete. - This is no longer needed because we don't need to map a UUID folder to a project name. (generate_results_page): - Pass in both output_root and static_analysis_dir so that a relative path from the results.html file to each index.html file (generated by scan-build) can be created. - Simplify logic since we just pass an array of project names instead of a dictionary that might contain None values. (get_total_issue_count): - Pass in static_analysis_dir instead of output_root since the project folders are all under that path. - Simplify logic since we just pass an array of project names instead of a dictionary that might contain None values. (main): - Split the concept of output_root (where results.html is written) and static_analysis_dir (the folder where the project folders exist). - Generate list of project names (folders) instead of a dictionary. Wrap filter() output in list() for python3. - Update calls to generate_results_page() and get_total_issue_count() per above. - Shrink size of zip file by passing '-9' and '-x *.d' switches to use maximum compression and to ignore *.d output files. Canonical link: https://commits.webkit.org/274397@main _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes