Crates.io | file-expert |
lib.rs | file-expert |
version | 1.1.0 |
source | src |
created_at | 2021-09-06 20:25:55.735841 |
updated_at | 2022-05-09 16:19:15.429849 |
description | Expert system for recognizing source code files, similar to GitHub/lingust. |
homepage | |
repository | https://github.com/kalkin/file-expert |
max_upload_size | |
id | 447689 |
size | 330,048 |
An expert system for recognizing source file, similar to GitHub/linguist, but written in Rust.
file-expert FILE…
The program can also read the files from STDIN
like this:
git ls-files|file-expert
Each output line contains the filename and the file type separated by the tab character.
.gitignore Ignore List
.gitlint.yaml YAML
.gitmodules Git Config
COPYING.md Markdown
Makefile.am Makefile
README.md Markdown
configure.ac M4Sugar
extra-extensions-kb.pl Prolog
file-expert.pl Prolog
heuristics.yml YAML
languages.yml YAML
m4/BKG_DIRECTORY_VARIABLES.m4 M4Sugar
m4/BKG_ENABLE_XDG.m4 M4Sugar
m4/BKG_PACKAGE_INFO.m4 M4Sugar
run-tests Shell
transform.py Python
carg install file-expert
⒈ Checkout this repository git clone https://github.com/kalkin/file-expert
.
⒉ Run cargo install --path .
to build and install it.
In production.
This project uses SemVer for versioning. For the versions available, see the tags on this repository.
Started around November 2017. Replaced with a Nim implementation in December
2018, because at this point the GitHub/linguist heuristics were a huge mess of
if … else
Ruby spaghetti code.
This project was archived until January 2019. My Nim implementation was broken by the compiler update. While fixing it I noticed that the GitHub/linguist heuristics were refactored to a YAML file. This opened up the possibility to easily autogenerate the heuristics rules. So I started working on the Prolog implementation again.
During the COVID-19 Summer in June 2021 I got proficient enough to rewrite this project in Rust. The main benefit is the sheer performance gain.
This project is licensed under the GNU Affero General Public License - see the COPYING.md file for details.
Written by Bahtiar `kalkin-` Gadimov.