Giter Club home page Giter Club logo

Comments (7)

AlDanial avatar AlDanial commented on May 28, 2024

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.

yikengboy avatar yikengboy commented on May 28, 2024

Can diff function support displaying file names?

from cloc.

AlDanial avatar AlDanial commented on May 28, 2024

@yikengboy: yes. Try, for example,
cloc --by-file --git --diff HEAD~2 HEAD

from cloc.

yikengboy avatar yikengboy commented on May 28, 2024

@AlDanial great!

from cloc.

AlDanial avatar AlDanial commented on May 28, 2024

@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 avatar huornlmj commented on May 28, 2024

@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.

AlDanial avatar AlDanial commented on May 28, 2024

@huornlmj I'm hoping to make the next release within a month.

from cloc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.