{"id":21928124,"url":"https://github.com/depp/headerfix","last_synced_at":"2026-04-28T23:31:08.915Z","repository":{"id":140487622,"uuid":"12516972","full_name":"depp/headerfix","owner":"depp","description":"Header File Fixer","archived":false,"fork":false,"pushed_at":"2013-09-01T15:35:10.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-22T12:18:48.722Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/depp.png","metadata":{"files":{"readme":"README.txt","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-01T06:55:22.000Z","updated_at":"2014-04-27T17:33:49.000Z","dependencies_parsed_at":"2023-03-13T10:41:53.085Z","dependency_job_id":null,"html_url":"https://github.com/depp/headerfix","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/depp/headerfix","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fheaderfix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fheaderfix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fheaderfix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fheaderfix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/depp","download_url":"https://codeload.github.com/depp/headerfix/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/depp%2Fheaderfix/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32404340,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"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":[],"created_at":"2024-11-28T22:21:18.798Z","updated_at":"2026-04-28T23:31:08.881Z","avatar_url":"https://github.com/depp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"HeaderFix\n=========\n\nHeaderFix is a tool for fixing copyright notices, header guards,\n'extern \"C\"' declarations, and miscellaneous other issues with source\ncode and header files.\n\nIt is designed to operate on source code in a Git repository.  The\ntool will fail if you try to run it outside a Git repository, this is\nintentional.\n\nConfiguration\n-------------\n\nYou can configure the tool by adding files named '.header' to your\nrepository.  These files will apply settings to any files in the\ndirectory and to directories below.\n\nSettings are configured by assignment, e.g.:\n\n    tabsize = 8\n\nCertain variables (like 'ignore') need no value, so they can be\nspecified without one:\n\n    ignore\n\nLonger values can be assigned using heredoc syntax, e.g.:\n\n    copyright_notice = \u003c\u003cEOF\n    All rights reserved.\n    EOF\n\nThe available settings are:\n\n* 'ignore': Any file with this setting is ignored.  Note that files\n  that match patterns in .gitignore file will also be ignored.  The\n  value and equals sign can be omitted, otherwise this is a boolean\n  setting.\n\n* 'guardname': For header files, this specifies the identifier used\n  for the header guard.  For directories, this specifies the prefix\n  for the header guard identifier, and the filename / directory name\n  will be appended for directories and subdirectories.\n\n* 'guards': A boolean (true or false) indicating that header guards\n  should be added to headers.\n\n* 'width': The maximum width, in characters, of lines of source code,\n  not including the line break.  Lines wider than this will trigger\n  warnings, but you will have to manually reformat those lines.\n\n* 'tabsize': The width of a tab, when tabs are converted to spaces.\n\n* 'extern_c': Whether an 'extern \"C\"' block is added to header files.\n\n* 'copyright_notice': The copyright notice (or license), not including\n  the actual authorship information, that is added to the top of each\n  file.\n\n* 'fix_copyright': A boolean.  If set to false, copyright notices will\n  not be added or modified.\n\nYou can put settings in groups and apply them to certain files based\non glob patterns.  Groups are enclosed in braces '{' and '}', each on\na separate line.  Patterns for a group are specified by lines starting\nwith '+' for positive patterns or '-' for negative patterns.\n\nExample\n-------\n\nHere is an example configuration file:\n\n    guards = true\n    guardname = MYLIB\n    width = 78\n    tabsize = 4\n    copyright_notice = \u003c\u003cEOF\n    All rights reserved.\n    EOF\n\n    {\n        + /subdir\n        ignore\n    }\n\n    {\n        + /include\n        {\n            + *.h\n            extern_c = true\n        }\n    }\n\nYou can try running the header script using this configuration by\nrunning\n\n    $ ./headerfix.sh example\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepp%2Fheaderfix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdepp%2Fheaderfix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdepp%2Fheaderfix/lists"}