Closed PQCraft closed 2 years ago
Codetabs/loc is only an online wrapper for github.com/boyter/scc.
In https://github.com/boyter/scc#ignore-files we can read about .gitignore files.
So if i download your repo in my computer and delete .gitignore it works
Language Files Lines Blanks Comments Code Complexity
───────────────────────────────────────────────────────────────────────────────
C Header 91 22119 2389 6540 13190 512
C 21 21245 2353 2195 16697 3813
Makefile 2 180 39 0 141 2
License 1 21 4 0 17 0
Plain Text 1 20 9 0 11 0
───────────────────────────────────────────────────────────────────────────────
Total 116 43585 4794 8735 30056 4327
@jolav I don't believe the .gitignore is the problem as it doesn't ignore the code folder. It ignores all and then exempts the files needed which include some files in the main directory and some folders including the code folder (src
).
After downloading the project I have tried two options:
1) Remove .gitignore file. zip project and upload to codetabs/loc
2) Remove the first line of .gitignore
1 *
then zip and upload project to codetabs/loc
The result is the same. It works
Besides in the doc https://github.com/boyter/scc#usage you see an option to disable .gitignore files
--no-gitignore disables .gitignore file logic
I have tested scc with that flags and it works too
So the problem is the ignore all * in the first line of .gitignore.
I dont know how https://github.com/boyter/scc deals with it but it is clear that the problem is there.
Project has several issues with gitignore files https://github.com/boyter/scc/issues?q=.gitignore
Ah ok thanks :+1:
Typing in my project CaveCube (
PQCraft/CaveCube
) shows this ignoring all the C files: