Questions tagged [lines-of-code]

The number of code lines. Can be used as a metric.

The number of code lines. Generally, a set of metrics are placed to estimate the quality of coding. lines-of-code is one of the metrics used to determine for example if a class is too long or too short. This metric is not an accurate one and is most of the time used with other metrics such as the number of methods, number of static fields, etc.

170 questions
5
votes
2 answers

Merging selective lines of code using Git?

I would like to force git to always merge using a (kind of) 3-way conflicts resolution. Moreover, I want to do it to the point of being able to choose single lines. At the moment I am merging two branches. However, if possible, I'd like to know how…
Alexander
  • 23,432
  • 11
  • 63
  • 73
5
votes
2 answers

LoC (lines of code) metrics for .NET 2.0 c# projects

Please suggest some free tools which will help me to get Lines-of-Code metrics for C# projects using the command line.
sundar venugopal
  • 3,080
  • 6
  • 39
  • 45
5
votes
1 answer

Controller performance in codeigniter

Is the maximum LOC(LINE OF CODE) effect on controller class response or not...is this thing matter.. 1.a)Controller: LOC 120, public functions exist 3. b)Controller: LOC 120, public functions exist 3. c)Controller: LOC 120, public functions…
Rahul Bajaj
  • 375
  • 3
  • 14
5
votes
6 answers

Lines of code you have written

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 cases (comments being included, new lines being added etc.),…
instanceOfObject
  • 2,936
  • 5
  • 49
  • 85
5
votes
1 answer

Why does Github list Django's total lines of code as over 800K?

https://github.com/django/django/graphs/code-frequency It can't be that big can it? I've seen it listed elsewhere as only about 80k: http://thegarywilson.com/blog/2012/software-metrics-django-case-study/
ajw0100
  • 378
  • 1
  • 8
4
votes
4 answers

Use of LOC to determine project size

How many lines of code (LOC) does it take to be considered a large project? How about for just one person writing it? I know this metric is questionable, but there is a significant difference, for a single developer, between 1k and 10k LOC. I…
user34537
4
votes
3 answers

Resources containing cross-language benchmarks?

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 lines of code are required in a given language to…
frooyo
  • 1,863
  • 3
  • 19
  • 21
4
votes
5 answers

Easy way to count lines of code using reflection

I need a (very rough) estimation on the lines of code (none-blank, none-comment) of an .net Assembly (c#). Is there an easy way to do this using reflection? I would prefer a hand-written tool (so I am asking about pointers here...) but I would also…
Nils
  • 9,682
  • 6
  • 46
  • 72
4
votes
2 answers

Finding a repository LOC's added in a specific commit

Is it possible to find a repository's total lines of code added in a specific commit?
atx
  • 4,831
  • 3
  • 26
  • 40
4
votes
1 answer

SonarQube - How LOC is calculated

I am using SonarQube Developer Edition 5.6.7 (LTS) and have bought a license supporting 5 million LOC. We are using RBAC and SonarQube runner by having a project key and templates. I would like to know: a. How are is the LOC usage calculated -…
4
votes
2 answers

Add language support to sloccount

Is there a way to tell sloccount that some files are neither of the existing languages already, but a new (different) language (some DSL, a language not supported by sloccount, scala, go, rust...) but not based on file extension, rather by their…
4
votes
3 answers

Software lines of code measurement - are comments included?

As a hobby project and as a learning exercise, I decided to implement a software lines of code measurement script in Python. However, I have a question: Are comments included in the measurement? The approach I have followed is: open the file, read…
user225312
  • 126,773
  • 69
  • 172
  • 181
4
votes
1 answer

Calculating the Lines of Code Estimate for a PHP, MySQL, HTML web app from Function Points

We need to convert our Function Point estimation to a Lines of Code estimation for our web application, which uses HTML5, PHP, MySQL and CSS3. The total number of function points we ended up with was 1727.24. What would be the best approach? All we…
TheAuzzieJesus
  • 587
  • 9
  • 23
4
votes
10 answers

how big should function length be (lines of code in a function)?

Possible Duplicate: How many lines of code should a function/procedure/method have? I would like to know how many lines of code should be function have? How many lines is too much. I read this a while back, it around 10 or 20 lines but it was…
hIpPy
  • 4,649
  • 6
  • 51
  • 65
4
votes
1 answer

IntelliJ Idea 11 - How to count lines of code(LOC)?

There is an old question about it, I just tried Statics plugin as some people mentioned, but I couldn't find anything associated with it after Idea restart. Does anyone knows a way(plugin, etc..) to count lines of code(LOC) using IntelliJ Idea 11?
talha06
  • 6,206
  • 21
  • 92
  • 147
1 2
3
11 12