lines-of-code

Eclipse plugin for measuring lines of code

社会主义新天地 提交于 2019-12-18 13:10:21
问题 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) { j--; } In other words, 2 logical lines of code (2 statements) will be counted instead of 3 physical lines of code. 回答1: Metrics2 is an updated version of the Metrics plug-in described by js3v that should do what you need. It can also aggregate some of the measurements (e.g. add up the LOC of classes in

How can I graph the Lines of Code history for git repo?

天大地大妈咪最大 提交于 2019-12-18 10:44:50
问题 Basically I want to get the number of lines-of-code in the repository after each commit. The only (really crappy) ways I have found is to use git filter-branch to run wc -l * , and a script that runs git reset --hard on each commit, then runs wc -l To make it a bit clearer, when the tool is run, it would output the lines of code of the very first commit, then the second and so on. This is what I want the tool to output (as an example): me@something:~/$ gitsloc --branch master 10 48 153 450

Good PHP Metric tools [closed]

瘦欲@ 提交于 2019-12-17 15:29:58
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 7 years ago . I have been coding in PHP for a while using Netbeans but it does not provide any tools for obtaining code metrics. I have also used

How do you count the lines of code in a Visual Studio solution?

故事扮演 提交于 2019-12-17 02:53:30
问题 Is it possible to find the number of lines of code in an entire solution? I've heard of MZ-Tools, but is there an open source equivalent? 回答1: Visual Studio 2010 Ultimate has this built-in. Analyze -> Calculate Code Metrics 回答2: I've found powershell useful for this. I consider LoC to be a pretty bogus metric anyway, so I don't believe anything more formal should be required. From a smallish solution's directory: PS C:\Path> (gci -include *.cs,*.xaml -recurse | select-string .).Count 8396 PS

Visual Studio - Determining Lines No Of Lines of code in a project

半城伤御伤魂 提交于 2019-12-12 08:07:34
问题 Visual Studio - Determining Lines No Of Lines of code in a project - is this possible in VS 2008? 回答1: I find SlickEdit gadgets SLOC report to be very good and FREE! :) Breaks down comments/lines of code etc. Kindness, Dan 回答2: there is no direct way from vs2008 to do it, but you can use extended tools such as: C# and VB.NET Line Count Utility 回答3: TeamSuite will report this value as part of it's code metrics along with other, perhaps more valuable, statistics. 回答4: You can use Project Line

Coding Practice: What are your thoughts on a 1.7 Million LOC project? [closed]

瘦欲@ 提交于 2019-12-09 06:04:32
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 5 years ago . I am listening to a panel discussion where a person mentions their 'engine' is not 1.3 but now is 1.7 million lines of code. That frightens me. I can't imagine that number of lines, the amount of modules, etc. I always felt that C++ doesn't handle modules as well as other

How many lines of PHP code is too many for one file?

老子叫甜甜 提交于 2019-12-05 21:00:15
问题 I'm creating a PHP file that does 2 mysql database calls and the rest of the script is if statements for things like file_exists and other simple variables. I have about 2000 lines of code in this file so far. Is it better practice to include a separate file if a statement is true; or simply type the code directly in the if statement itself? Is their a maximum number of lines of code for a single file that should be adhered to with PHP? 回答1: I would say there should not be any performance

How many lines of PHP code is too many for one file?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 03:30:16
I'm creating a PHP file that does 2 mysql database calls and the rest of the script is if statements for things like file_exists and other simple variables. I have about 2000 lines of code in this file so far. Is it better practice to include a separate file if a statement is true; or simply type the code directly in the if statement itself? Is their a maximum number of lines of code for a single file that should be adhered to with PHP? I would say there should not be any performance issue related to the number of lines in your php files, it can be as big as you need. Now, for the patterns and

How to count lines in a netbeans project

主宰稳场 提交于 2019-12-03 22:05:24
Hello I have netbeans 7 and I was wondering how to calculate the total lines for a project. I have looked through Google but every time I do it I only find dead ends or non working plugins. Does anyone know how to count the lines? You can use wordcount that works with 7.1 nb-wordcount that works with 8.2. To configure wordcount go in Tools -> Options -> Miscellaneous . You have to change Accept filename if you want other files than Java and Groovy to match. To display the count window go in Window -> Open WordCount Window . To display stats click on WordCounting (second button). I will display

Scala source code metrics tool (lines of code, lines of comments and so on) [closed]

余生颓废 提交于 2019-12-03 10:03:17
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 4 years ago . 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 working in intellij so have tried metricsReloaded and Static plugins, but they are completely ignoring the scala files. Any