{"id":19604125,"url":"https://github.com/zedthree/warnsum","last_synced_at":"2025-09-16T16:37:08.536Z","repository":{"id":210724485,"uuid":"727292782","full_name":"ZedThree/warnsum","owner":"ZedThree","description":"A little helper tool for summarising compiler warnings from log files","archived":false,"fork":false,"pushed_at":"2024-01-19T12:05:35.000Z","size":44,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-28T07:49:46.372Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ZedThree.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-04T15:17:53.000Z","updated_at":"2023-12-04T15:21:29.000Z","dependencies_parsed_at":"2023-12-11T13:06:43.924Z","dependency_job_id":null,"html_url":"https://github.com/ZedThree/warnsum","commit_stats":null,"previous_names":["zedthree/warnsum"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ZedThree/warnsum","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZedThree%2Fwarnsum","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZedThree%2Fwarnsum/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZedThree%2Fwarnsum/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZedThree%2Fwarnsum/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ZedThree","download_url":"https://codeload.github.com/ZedThree/warnsum/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ZedThree%2Fwarnsum/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274250508,"owners_count":25249396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T09:34:50.297Z","updated_at":"2025-09-16T16:37:03.504Z","avatar_url":"https://github.com/ZedThree.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# warnsum\n\nA little helper tool for summarising compiler warnings from log\nfiles. Works on warnings generated from GCC/Clang and gfortran,\nprobably not on other compilers\n\n## Why?\n\nIf you're working on a legacy project that generates thousands of\nwarnings, you might want some idea of where to start fixing things.\n\nAlso, this was just an excuse to learn Rust. Use at your own risk :)\n\n## Installation\n\nInstall with\n[cargo](https://doc.rust-lang.org/cargo/commands/cargo-install.html)\nafter cloning locally:\n\n```bash\n$ cargo install --path .\n```\n\n(or install directly from GitHub)\n\n## Usage\n\nGenerate your compiler warnings and dump them to a file somehow, for\nexample:\n\n```bash\n$ cmake --build build |\u0026 tee make.log\n```\n\nthen run `warnsum` on that file:\n\n```bash\n$ warnsum make.log\n```\n\n## Example\n\nGive this set of warnings:\n\n```\n[  1%] Generating file1.c\n[  2%] Generating file2.c\n/path/to/dir1/file1.c: In function ‘func1’:\n/path/to/dir1/file1.c:235:36: warning: doing some bad thing [-Wbad-thing]\n  235 |     if (horrible) *foo = zing-\u003ezimb;\n      |                                ^~~~~\n/path/to/dir2/file1.c: In function ‘func2’:\n/path/to/dir2/file1.c:340:27: warning: don't like this [-Wdont-like-this]\n  340 |     zing-\u003ezimb \u0026= (~foo.zang);\n      |                     ^~\n/path/to/dir2/file2.c: In function ‘func3’:\n/path/to/dir2/file2.c:697:16: warning: just horrible stuff [-Whorrible-stuff]\n  697 |     horrible = stuff;\n      |                ^~~\n/path/to/dir2/file2.c:715:18: warning: just horrible stuff [-Whorrible-stuff]\n  715 |       horrible = stuff[i];\n      |                  ^~~\n```\n\n`warnsum` produces:\n\n```\nWarnings:\n2  horrible-stuff\n1  bad-thing\n1  dont-like-this\n4  Total\n\nFiles:\n2  /path/to/dir2/file2.c\n1  /path/to/dir1/file1.c\n1  /path/to/dir2/file1.c\n3  Total\n\nDirectories:\n3  /path/to/dir2\n1  /path/to/dir1\n2  Total\n\nKeywords:\n3  horrible\n2  stuff\n2  Total\n```\n\nNote that the total for the `Warnings` category is the total number of\nwarnings, while for the other categories the total is the distinct\nnumber of items in each category.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzedthree%2Fwarnsum","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzedthree%2Fwarnsum","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzedthree%2Fwarnsum/lists"}