Comments (4)
That's odd, works for me. Note that --by-percent
takes an argument that defines how the denominator in the percentage is computed. Here's output I get when I count lines of cloc itself using code count as the denominator:
ubuntu> cloc --by-percent c cloc 1 text file. 1 unique file. 0 files ignored. https://github.com/AlDanial/cloc v 1.65 T=0.07 s (13.7 files/s, 147685.2 lines/s) ------------------------------------------------------------------------------- Language files blank % comment % code ------------------------------------------------------------------------------- Perl 1 8.14 12.90 8891 -------------------------------------------------------------------------------
What happens when you run
cloc --by-percent c cloc?
from cloc.
Hi, sorry for the delay. I just had a kid, things are crazy :) Here's the output:
sam@sam-VirtualBox ~ $ cloc --by-percent c cloc
Unknown option: by-percent
from cloc.
hey, that's great! The sleep deprivation in the early year(s) is a real drag though.
Anyway, I have a theory on what's going on: the cloc command you're invoking may not be the one you downloaded. What do you get for
cloc --version
? If it isn't 1.65, then you aren't running a version that has the feature. You can download the source to a local directory then run
./cloc --version
and you should see the latest.
from cloc.
thanks! It was versioning...
from cloc.
Related Issues (20)
- When Japanese is specified in the report-file argument, the file name is not output correctly. HOT 2
- Support janet HOT 1
- Trying to ignore the C# generated files using --no-autogen but its not working HOT 3
- Wrong comment results for Java HOT 1
- Add support of Java text blocks HOT 7
- 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 4
- 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
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.