Comments (7)
cloc can produce filename + language results (except for the full file path; output paths are relative to the location you run cloc from), try for example
cloc --by-file --csv your_directory
but the format isn't neatly aligned in columns. Ref the discussion for #756, the output gets crowded when including results by filename and language. A work-around to getting full paths is by providing a fully qualified path as input, ie,
cloc --by-file --csv /path/to/your/directory
See also --yaml
, --xml
, or --json
as alternate output formats containing filename and language (if running with --by-file
).
from cloc.
Can diff function support displaying file names?
from cloc.
@yikengboy: yes. Try, for example,
cloc --by-file --git --diff HEAD~2 HEAD
from cloc.
@AlDanial great!
from cloc.
@huornlmj try, using the latest dev code,
cloc --fmt 3 my_code/
to see both the full path and language for each file
from cloc.
@huornlmj try, using the latest dev code,
cloc --fmt 3 my_code/
to see both the full path and language for each file
Thank you @AlDanial this worked exactly as desired! Do you know when this will make it into the next release?
from cloc.
@huornlmj I'm hoping to make the next release within a month.
from cloc.
Related Issues (20)
- Wrong code results for Java HOT 1
- Wrong line calculations with strings in C HOT 1
- Cloc doesn't count XML file HOT 1
- Cloc doesn't support <![CDATA[ .... ]]]]><![CDATA[> ...]]> in XML HOT 2
- Cloc counts line where comment starts as comment in XML HOT 1
- Nickel config lang support
- exe version of cloc not support file name with chinese character HOT 2
- Language support for Luau .luau HOT 1
- List winget in README package maganers HOT 1
- Cloc has problems with */* in Go HOT 3
- Cloc doesn't count correctly Visual Basic code HOT 1
- Add Modelica language HOT 3
- support Processing Language
- Documentation for --force-lang is slightly wrong HOT 3
- --fullpath does not work with --vcs=git HOT 4
- Possible inconsistent counting of "same" lines HOT 5
- Add option to exclude shebang from the count HOT 5
- Add support for .gjs/.gts
- dotnet tool HOT 1
- Reading JSON file kills cloc when counting repo HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloc.