You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, counting C++ lines of code seems to be broken (for generating badges).
I use the popular fmtlib as the first example, which used .h for C++ header files (not supported in your languages.json) and uses .cc for C++ source files which IS supported in languages.json.
Second example is identical but uses glaze as the repo, which uses .hpp and .cpp for header and source files.
1. Example fmtlib (.h/.cc)
At first it appears to work: ![](https://tokei.rs/b1/github/fmtlib/fmt?type=Cpp,CppHeader)
But it doesn't, it appears that Cpp and CppHeader is not recognized so instead it falls back on detecting any languages.
When adding Cmake to the list: ![](https://tokei.rs/b1/github/fmtlib/fmt?type=Cpp,CppHeader,Cmake)
Now it's only 1.2k lines which is how many lines of Cmake there are in the repo.
Adding Go instead of Cmake puts the LoC at 0 as Go is recognized but there's no Go code in fmtlib. ![](https://tokei.rs/b1/github/fmtlib/fmt?type=Cpp,CppHeader,Go)
2. Example glaze (.hpp/.cpp)
Just ?type=Cpp,CppHeader ![](https://tokei.rs/b1/github/stephenberry/glaze?type=Cpp,CppHeader)
When adding Cmake to the list: ![](https://tokei.rs/b1/github/stephenberry/glaze?type=Cpp,CppHeader,Cmake)
Adding Go instead of Cmake ![](https://tokei.rs/b1/github/stephenberry/glaze?type=Cpp,CppHeader,Go)
The text was updated successfully, but these errors were encountered:
Hi, counting C++ lines of code seems to be broken (for generating badges).
I use the popular fmtlib as the first example, which used
.h
for C++ header files (not supported in your languages.json) and uses.cc
for C++ source files which IS supported in languages.json.Second example is identical but uses glaze as the repo, which uses
.hpp
and.cpp
for header and source files.1. Example fmtlib (.h/.cc)
At first it appears to work:
![](https://camo.githubusercontent.com/e11e81227ed693c7cc09bde05093ca6e065f5fa9f56f753d9d0ccb2a3b2687ca/68747470733a2f2f746f6b65692e72732f62312f6769746875622f666d746c69622f666d743f747970653d4370702c437070486561646572)
![](https://tokei.rs/b1/github/fmtlib/fmt?type=Cpp,CppHeader)
But it doesn't, it appears that
Cpp
andCppHeader
is not recognized so instead it falls back on detecting any languages.When adding
![](https://camo.githubusercontent.com/365a96170c2446386b3dd449cb72a4702481a7a65d516747605644163ee9daf9/68747470733a2f2f746f6b65692e72732f62312f6769746875622f666d746c69622f666d743f747970653d4370702c4370704865616465722c436d616b65)
Cmake
to the list:![](https://tokei.rs/b1/github/fmtlib/fmt?type=Cpp,CppHeader,Cmake)
Now it's only 1.2k lines which is how many lines of Cmake there are in the repo.
Adding
![](https://camo.githubusercontent.com/de6e58047f51134c8c98eb165739161b2a6dc2e5609558b880abf95cf297fb94/68747470733a2f2f746f6b65692e72732f62312f6769746875622f666d746c69622f666d743f747970653d4370702c4370704865616465722c476f)
Go
instead ofCmake
puts the LoC at 0 asGo
is recognized but there's noGo
code in fmtlib.![](https://tokei.rs/b1/github/fmtlib/fmt?type=Cpp,CppHeader,Go)
2. Example glaze (.hpp/.cpp)
Just
![](https://camo.githubusercontent.com/723a7f63a5c0bf4c9d20f0e50a7146be9649a0d951243ebb140e82d43fd9c134/68747470733a2f2f746f6b65692e72732f62312f6769746875622f7374657068656e62657272792f676c617a653f747970653d4370702c437070486561646572)
?type=Cpp,CppHeader
![](https://tokei.rs/b1/github/stephenberry/glaze?type=Cpp,CppHeader)
When adding
![](https://camo.githubusercontent.com/771a258540a6591e497f29a0814a8d4953315255c5b100d405aafa285a914ff9/68747470733a2f2f746f6b65692e72732f62312f6769746875622f7374657068656e62657272792f676c617a653f747970653d4370702c4370704865616465722c436d616b65)
Cmake
to the list:![](https://tokei.rs/b1/github/stephenberry/glaze?type=Cpp,CppHeader,Cmake)
Adding
![](https://camo.githubusercontent.com/2f47ff6e4e0c9bfda3b144aa8c043bc8b5ac6a1a0408e0e03d296ad31b8d6319/68747470733a2f2f746f6b65692e72732f62312f6769746875622f7374657068656e62657272792f676c617a653f747970653d4370702c4370704865616465722c476f)
Go
instead ofCmake
![](https://tokei.rs/b1/github/stephenberry/glaze?type=Cpp,CppHeader,Go)
The text was updated successfully, but these errors were encountered: