{"id":14980764,"url":"https://github.com/yegor256/bibcop","last_synced_at":"2025-10-10T20:34:49.010Z","repository":{"id":64645466,"uuid":"576818147","full_name":"yegor256/bibcop","owner":"yegor256","description":"LaTeX Package, a Style Checker of .bib Files: it emits warnings in the TeX log if any issues are found","archived":false,"fork":false,"pushed_at":"2025-10-03T21:31:01.000Z","size":772,"stargazers_count":14,"open_issues_count":11,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-10-03T23:26:12.049Z","etag":null,"topics":["biber","biblatex","bibliography","bibtex","latex","latex-package","latex-packages","linter","style-checker"],"latest_commit_sha":null,"homepage":"https://ctan.org/pkg/bibcop","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yegor256.png","metadata":{"files":{"readme":"README.md","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-12-11T04:23:39.000Z","updated_at":"2025-08-09T17:30:40.000Z","dependencies_parsed_at":"2023-02-16T22:01:14.510Z","dependency_job_id":"440ca479-501b-40a9-a939-21359f6a1f5e","html_url":"https://github.com/yegor256/bibcop","commit_stats":{"total_commits":348,"total_committers":3,"mean_commits":116.0,"dds":"0.10919540229885061","last_synced_commit":"5fd2e816402b602ce56f7b022850ec8bd752edd5"},"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"purl":"pkg:github/yegor256/bibcop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fbibcop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fbibcop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fbibcop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fbibcop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yegor256","download_url":"https://codeload.github.com/yegor256/bibcop/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yegor256%2Fbibcop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005272,"owners_count":26083863,"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-10-10T02:00:06.843Z","response_time":62,"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":["biber","biblatex","bibliography","bibtex","latex","latex-package","latex-packages","linter","style-checker"],"created_at":"2024-09-24T14:02:22.544Z","updated_at":"2025-10-10T20:34:49.004Z","avatar_url":"https://github.com/yegor256.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bibcop: Style Checker of BibTeX .bib files\n\n![bibcop logo](bibcop-logo.png)\n\n[![l3build](https://github.com/yegor256/bibcop/actions/workflows/l3build.yml/badge.svg)](https://github.com/yegor256/bibcop/actions/workflows/l3build.yml)\n[![CTAN](https://img.shields.io/ctan/v/bibcop)](https://ctan.org/pkg/bibcop)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/yegor256/bibcop/blob/master/LICENSE.txt)\n\nThis LaTeX package checks the quality of your `.bib` file and\nemits warning messages if any issues are found. You may also like\n[biblint](https://github.com/Kingsford-Group/biblint) and\n[biblatex-check](https://github.com/pezmc/biblatex-check) tools —\nthey do _almost_ the same but from the command line.\n\nRead [this blog post][BLOG], in order to understand\nthe motivation behind this package.\n\nFirst, [install it][INSTALL] from [CTAN](https://ctan.org/pkg/bibcop)\nand then use in the preamble\n(if you use [BibTeX](http://www.bibtex.org/), for example):\n\n```tex\n\\documentclass{article}\n\\usepackage{bibcop}\n\\begin{document}\n\\bibliographystyle{plain}\n\\bibliography{main}\n\\end{document}\n```\n\nYou can also add it as a GitHub Action to your\nGitHub repository, with the help of\n[bibcop-action](https://github.com/yegor256/bibcop-action).\n\nOtherwise, you can download\n[`bibcop.sty`](https://yegor256.github.io/bibcop/bibcop.sty)\nand add to your project (together with\n[`bibcop.pl`](https://yegor256.github.io/bibcop/bibcop.pl)!).\n\nYou can also download\n[`bibcop.pl`](https://yegor256.github.io/bibcop/bibcop.pl)\nand use it as a command line tool\nto check your `.bib` files and to auto-fix them\n(you should have [Perl](https://www.perl.org) installed):\n\n```bash\nperl bibcop.pl --fix main.bib \u003e fixed.bib\n```\n\nThis command will read the `main.bib` file and\ncreate `fixed.bib`, which will have the fixed and properly\nformatted content (well, to some extent).\nBe careful, all comments will be removed.\n\nYou can also make changes inline, not creating a new file:\n\n```bash\nperl bibcop.pl --fix --in-place main.bib\n```\n\nIf you install the package using\n[`tlmgr`](https://www.tug.org/texlive/tlmgr.html),\nyou should be able to use `bibcop` directly, without the\nnecessity to mention Perl:\n\n```bash\ntlmgr install bibcop\nbibcop --help\n```\n\n## How to use as pre-commit hook\n\nIf you use [pre-commit], simply add this to your config:\n\n```yaml\n-   repo: https://github.com/yegor256/bibcop\n    rev: 0.0.32\n    hooks:\n    -   id: bibcop\n        args: []\n```\n\n## How to Contribute\n\nIf you want to contribute yourself, make a fork, then create a branch,\nthen run `l3build ctan` in the root directory. It should compile\neverything without errors. If not, submit an issue and wait.\nOtherwise, make your changes and then run `l3build ctan` again.\nIf the build is still clean, submit a pull request.\n\nIf you want to add a new check, add it as a Perl subroutine\nto the `bibcop.pl` file. Don't forget to add a test to one of the test\nfiles that stay in the `perl-tests/` directory.\nWhen ready, run this, in order to check that all tests pass:\n\n```bash\nperl tests.pl\n```\n\nYou should see the `GREAT!` message.\n\nCopyright (c) 2022-2025 Yegor Bugayenko, MIT License\n\n[BLOG]: https://www.yegor256.com/2023/09/05/style-checker-for-bibtex-files.html\n[INSTALL]: https://en.wikibooks.org/wiki/LaTeX/Installing_Extra_Packages\n[pre-commit]: https://pre-commit.com/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fbibcop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyegor256%2Fbibcop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyegor256%2Fbibcop/lists"}