{"id":17037117,"url":"https://github.com/bast/localimporter","last_synced_at":"2026-04-14T06:32:47.241Z","repository":{"id":72326229,"uuid":"132241798","full_name":"bast/localimporter","owner":"bast","description":"Locates sources which might require an include reorder.","archived":false,"fork":false,"pushed_at":"2018-05-05T11:34:48.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-24T12:43:45.510Z","etag":null,"topics":["c","cpp","header-files","includes"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bast.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2018-05-05T11:27:56.000Z","updated_at":"2018-05-05T11:34:49.000Z","dependencies_parsed_at":"2023-04-24T21:32:24.739Z","dependency_job_id":null,"html_url":"https://github.com/bast/localimporter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bast/localimporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Flocalimporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Flocalimporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Flocalimporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Flocalimporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bast","download_url":"https://codeload.github.com/bast/localimporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bast%2Flocalimporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31785610,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-14T02:24:21.117Z","status":"ssl_error","status_checked_at":"2026-04-14T02:24:20.627Z","response_time":153,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["c","cpp","header-files","includes"],"created_at":"2024-10-14T08:52:55.232Z","updated_at":"2026-04-14T06:32:47.234Z","avatar_url":"https://github.com/bast.png","language":"Python","readme":"[![License](https://img.shields.io/badge/license-%20MPL--v2.0-blue.svg)](LICENSE)\n\n\n# localimporter: locates sources which might require an include reorder\n\nScript that goes through your C/C++ project and finds sources which include\nstandard headers before including local headers.\n\nYou may then consider reordering these.\n\nWhy? Because importing standard headers first may mask missing imports in your\nown local headers and sources and they otherwise may stop compiling if the\norder changes or if somebody uses them in another code.\n\nThe script does not modify any files.\n\n\n## Example\n\n```\n$ python localimporter.py --root /home/user/exciting-project\n\n/home/user/exciting-project/src/this.hpp\n/home/user/exciting-project/src/that.h\n/home/user/exciting-project/src/another.cpp\n/home/user/exciting-project/src/somelib.c\n/home/user/exciting-project/src/main.cpp\n\n$ python localimporter.py --root /home/user/exciting-project --suffixes \"['hpp']\"\n\n/home/user/exciting-project/src/this.hpp\n```\n\n\n## Command line options\n\n```\n$ python localimporter.py --help\nUsage: localimporter.py [OPTIONS]\n\nOptions:\n  --root TEXT      Directory root under which the script will search files.\n  --suffixes TEXT  List of suffixes to search, default: ['h', 'hpp', 'c',\n                   'cpp'].\n  --help           Show this message and exit.\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbast%2Flocalimporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbast%2Flocalimporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbast%2Flocalimporter/lists"}