2

Hey guys,
I'm trying to make use out of Cloc for my company. Cloc is a tool for counting code lines.
I want it to count only the lines in certain file tpyes (like .cs). How do i do this?
I tried --include-lang=[.cs,....] but it doesn't work. What am I missing?

Comments
  • 0
    OK, i guess i got it to work somehow. Still problems including .h (C/C++ Header Files). Does anyone have an idea how to do that?
  • 1
    @KittyMeowstika you were supposed to give us a solution!
  • 1
    @melezorus34 Sorry^^
    it's basically: call cloc.exe [filepath to search through] --include-lang="C/C++ Header",[every other language you want to include]
    as i want to write my output into a text file i'm using the --out parameter with an outputpath
Add Comment