lines-of-code Questions

11

Solved

I have a project whose lines of code I want to count. Is it possible to count all the lines of code in the file directory containing the project by using Python?
Reck asked 23/7, 2016 at 16:2

22

Solved

I realize there's no definitely "right" answer to this question, but when people talk about lines of code, what do they mean? In C++ for example, do you count blank lines? Comments? Lines wit...
Gaekwar asked 9/12, 2008 at 16:33

4

Solved

Using the command: wc -l + `find . -name \* -print` You can get the total number of lines of all files inside a folder. But imagine you have some folders (for example libraries), which you don...
Gaytan asked 16/5, 2011 at 11:20

2

Solved

I've heard people say (although I can't recall who in particular) that the number of bugs per line of code is roughly constant regardless of what language is used. What is the research that backs t...
Fernery asked 24/5, 2010 at 16:40

3

The code metrics analyser in Visual Studio, as well as the code metrics power tool, report the number of lines of code in the TestMethod method of the following code as 8. At the most, I would exp...
Jeromyjerreed asked 26/10, 2012 at 10:28

3

Solved

I'm looking for reporting tools for TFS, I need to get Lines of Code for individual developer between 2 dates, do you think it is doable via TFS?
Bimah asked 11/3, 2013 at 14:50

1

Solved

I have a projet composed of numerous modules. I am running both JaCoCo for unit tests coverage and Sonar for code quality. For a technical reason, I can't use JaCoCo reports for one of my modules ...
Kaylor asked 30/3, 2018 at 8:58

1

Solved

It should be a trivial task but neither reading through the docs and man page nor googling brought up a solution to what I'm trying to achieve: cloc is scanning our source tree and we want it to i...
Ming asked 23/6, 2016 at 9:2

4

Solved

How can i count the LOC of a Netbeans PHP-Project? i´m using Netbeans 7.0.1 on Windows 7
Hectare asked 1/11, 2011 at 16:28

6

Solved

Out of curiosity, is there any way to get the number of lines of code you have written (in a specific project)? I tried perforce with p4 describe #CLN | wc -l, but apart from so many edge ca...
Electrostatic asked 7/1, 2013 at 18:23

1

Solved

I am trying to count the lines of code in my project in IntelliJIDEA. From this I saw that Statistic plugin is good for that. But I do not know how to use it. Can someone tell me that please? Pleas...
Flipflop asked 2/9, 2014 at 8:40

5

I am currently researching a solution for counting lines of code in C#. I pretty much need a combination of the following two tools: http://richnewman.wordpress.com/2007/07/01/c-and-vbnet-line-co...
Stopple asked 5/5, 2010 at 12:16

2

Solved

There seems to be so many code analysis tools supporting the java language, but I am so far unable to find one that supports scala (something simple like finding LOC would be nice)? I'm worki...
Aslam asked 27/1, 2014 at 20:59

4

Solved

Does anyone know a good metrics plugin for Eclipse that works with C++ ? I'm looking for lines of code mainly. Thanks.
Dovelike asked 8/12, 2010 at 21:12

1

Solved

I want to get the total number of lines of code that an account on GitHub has done. This is not for judging productivity or whatever (LOC is a poor choice for that), it's really just for our amusem...
Hickox asked 16/5, 2013 at 16:48

4

Solved

I want to count the lines of code in a multi-file Python project as accurately as possible, but without including comments, docstrings or blank lines in the total. I first tried using cloc, ...
Justinn asked 31/1, 2012 at 8:43

7

Solved

As the title says how i can calculate the total number of lines in a source code folder using bash commands
Upthrow asked 26/12, 2010 at 19:52

4

I was doing some research on line counters for C++ projects and I'm very interested in algorithms they use. Does anyone know where can I look at some implementation of such algorithms?
Hide asked 4/7, 2012 at 15:14

3

Solved

I am in the process of writing a class that will probably end up being around 3000 lines of code. What I would like to know is very simple, will initiating this class at the top of each page slow ...
Sacral asked 18/1, 2012 at 18:25

1

Solved

The default Emacs modeline only shows the current line number and its percentage in relation to the total line numbers. How do I make it show the line total as well?
Magalymagan asked 18/11, 2011 at 23:10

4

I'm running Eclipse Helios (3.6) and was wondering if there is a nice plugin out there that will count the number of logical lines of code in a java source file. By logical, I mean if (j > 6) {...
Curst asked 8/8, 2011 at 18:26

3

Is there a quick and dirty way in either python or bash script, that can recursively descend a directory and count the total number of lines of code? We would like to be able to exclude certain dir...
Heilbronn asked 21/9, 2011 at 23:16

1

Solved

In the context of counting source lines of code (SLoC) what is the "Third Generation Scale" factor that is defined on each programming language?
Contaminant asked 22/8, 2011 at 15:33

3

Solved

What resources are available that use benchmarks for comparing programming languages? I am interested in both How quickly a program in a given language can execute a given benchmark? How many lin...
Prophylactic asked 22/5, 2011 at 23:43

2

I'm trying to find a trivially easy way of estimating the LOC for my Rails project, including views and CSS. Is there a way to do this using TextMate? If not, how else can one go about getting a to...
Scottiescottish asked 24/4, 2011 at 8:53

© 2022 - 2024 — McMap. All rights reserved.