objectionary / ideas

Here we keep ideas for future research in EO programming language and Polystat static analyzer
https://www.eolang.org
7 stars 0 forks source link

bibcop: style checker of .bib files #30

Closed yegor256 closed 1 year ago

yegor256 commented 1 year ago

There is a tool called biblint, which checks the quality of .bib files and fixes most of the typical bugs. However, it's not powerful enough. Would be great to extend it with semantic rules, to catch the bugs such as (on top of what biblint can catch):

Maybe we can improve biblint or create a new one from scratch (let's call it bibcop). It should be a command line tool, which runs like this:

$ tlmgr install bibcop
$ bibcop my.bib

or

$ bibcop -a my.bib

where -a means --autofix.

Also, would be nice to have a LaTeX package, which would be the front-end of this linter. I should be able to use it inside my document:

\documentclass{article}
\bibliography{foo} % foo.bib is my file
\usepackage{bibcop} % here, a LaTeX warning will be issued for each problem in the .bib file
\begin{document}
Hello, world!
\end{document}
yegor256 commented 1 year ago

First version is released: https://github.com/yegor256/bibcop Now, we need to make it stronger, add more checkers to it.