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
3
votes
1 answer

How to you measure lines of front-end code (HTML, CSS, JS, JSP)?

The company I work for is being audited and I have to provide some metrics on our codebase. I have provided some statistics on our Java code using some plugins for Eclipse. But I also need to measure lines of front-end code: HTML, CSS, JS, JSP. Is…
Farsak
  • 31
  • 2
3
votes
1 answer

Count total number of lines in Netbeans

Is there any way to count the total number of lines inside a php project?
rfc1484
  • 9,441
  • 16
  • 72
  • 123
3
votes
3 answers

How can I reduce lines of code in PHP?

I am a web developer and I write code in PHP/Laravel framework. I've been tying to follow best practice for writing code and I know it's a good practice to write 15-20 lines of code in functions and maximum 200 lines of code in Classes. But every…
Manish Verma
  • 469
  • 7
  • 17
3
votes
1 answer

How to get the PHPLOC results displayed in Jenkins?

I use Jenkins for PHP projects with the PHP Quality Assurance Toolchain. To get the code analysis results displayed in Jenkins one simple has to add the according post-build action(-s): The problem is currently with the PHP QA tool PHPLOC. I don't…
automatix
  • 14,018
  • 26
  • 105
  • 230
3
votes
7 answers

C# penalty for number of lines of code?

Are there limits or performance penalties on the amount of code inside of my home.cs form? I am writing a database application front-end in C# in Visual Studio 2008. The way things are lining up, I am using a tab-page way of changing the info shown…
Matt
  • 1,862
  • 2
  • 17
  • 19
3
votes
2 answers

Counting Lines of code - quality metircs

I'm taking the lines of code for my Java project , the project contains lot of XML files too. Now my question is when calculating lines of code. Do i need to consider XML lines of code as well? Please help
srinannapa
  • 3,085
  • 8
  • 49
  • 66
3
votes
2 answers

Finding Lines of Code in Suvbversion

Friends, can anybody know finding lines of code in Subversion? As I am new to Subversion, I dont know much about it. Basically, earlier we used Clearcase as our Version Control System. One of our Manager requires Lines of Code (KLOC) from a…
Suresh Kumar
  • 71
  • 1
  • 2
  • 3
3
votes
1 answer

Why does NDepend count Static fields as LOC for a method

I have a type to define and assign some static readonly fields. I got a violation for Methods too big (LOC) I would like to know if I have an attribute for method, and used it in the rule (see below). Where is in my source code I need to use this…
3
votes
1 answer

How to count KLOC in a Java project (including front-end technologies)?

I would like to know the total KLOC of my projects including their front-end technologies (ex. freemarker). We are using IntelliJ IDE and Jacoco for metrics collection of Java (only) files. The standard technology stack is pretty much as…
user689842
3
votes
1 answer

retain indentation relative to first line on multiple line copy & paste

Sorry if this has been answered already, but nothing's coming in on google or stack's search. When I copy & paste multiple lines in Notepadd++, all the lines hold their relative indentation, but they don't relative to the first line. Does anyone…
user1382306
3
votes
10 answers

How many lines of code will be saved using JQuery instead of straight JavaScript?

Maybe someone more familiar with the topic can help me to simplify or write the question correctly. We are looking for metrics on JQuery or even other JS Frameworks in comparison with the use of straight javascript. I don't beleive in the lines of…
Geo
  • 8,663
  • 13
  • 63
  • 93
3
votes
1 answer

How to find Lines of Code of packaged procedures and functions in Oracle

Possible Duplicate: How to View Oracle Stored Procedure using SQLPlus? Im new to Oracle. Could you please help me on this? How to fine Lines of Code of packaged procedures and functions in Oracle? Is there any system tables or query to find the…
Rajan
  • 198
  • 1
  • 2
  • 10
2
votes
3 answers

SWT needs to much lines of code

I wondering why swt is so inconvenient to use. We as programmers have to produce tons of unnecessary source code. Here an example. Label label = new Label(parent, SWT.NONE); label.setText("labelname"); The minimum would be like…
strangeoptics
  • 753
  • 8
  • 17
2
votes
1 answer

Are closing brackets counted as statements in Statement Coverage? What about if they come after a return statement?

I'm doing a simple assignment where I have to go over test case coverage(statement coverage, path coverage, etc) of a function. I've tried endlessly to add code here and StackOverflow won't accept it no matter how I format it, so I'll just explain a…
HR1596
  • 31
  • 3
2
votes
1 answer

Django Sitemap Generates https:// in loc TWICE in Development

The example.com/sitemap.xml is returning loc with double https:// making the generated sitemap to be incorrect/unacceptable.
Top Tier
  • 51
  • 5