lines-of-code

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

孤者浪人 提交于 2019-12-03 00:35:30
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. 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 suggestions would be appreciated.. :) Edit: Metrics needed is just something like lines of code, lines of comment

Counting changed lines of code over time

痴心易碎 提交于 2019-12-02 17:55:19
Is there any good tool that computes the number of changed lines of code over a certain time period in a mercurial repository? Something along the lines of statsvn would be great, but anything counting the number of changed lines of code within 6 months will do (including a clever combination of arguments to hg log). Thanks. PS: Please do not discuss the purpose of measuring this number ;) The hg churn extension is what you want. You can get visual results with hg activity or hg chart . Edit : hg diff and hg log both support a --stat option that can do this for you, only better and quicker. I

How would you measure inserted / changed / removed code lines (LoC)?

谁都会走 提交于 2019-11-30 21:09:33
问题 My question concerns LoC metrics. I have to provide statistics of inserted, changed and removed lines. My users use ClearCase and the example below based on it, however I believe that my question is general. Please have a look on the following example (taken from ClearCase documents). It compares two file versions, /main/1 (on the left side) and /main/3 (right side). ******************************** (file summary) <<< file 1: util.c@@/main/1 >>> file 2: util.c@@/main/3 ***********************

Eclipse plugin for measuring lines of code

折月煮酒 提交于 2019-11-30 09:04:19
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. 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 a package to give you the LOC of the package). This page explains some of its capabilities and mentions

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

守給你的承諾、 提交于 2019-11-29 23:13:51
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 1734 1542 I've played around with the ruby 'git' library, but the closest I found was using the .lines()

Query to list SQL Server stored procedures along with lines of code for each procedure

若如初见. 提交于 2019-11-28 05:02:35
I want a query that returns a list of all the (user) stored procedures in a database by name, with the number of lines of code for each one. i.e. sp_name lines_of_code -------- ------------- DoStuff1 120 DoStuff2 50 DoStuff3 30 Any ideas how to do this? select t.sp_name, sum(t.lines_of_code) - 1 as lines_ofcode, t.type_desc from ( select o.name as sp_name, (len(c.text) - len(replace(c.text, char(10), ''))) as lines_of_code, case when o.xtype = 'P' then 'Stored Procedure' when o.xtype in ('FN', 'IF', 'TF') then 'Function' end as type_desc from sysobjects o inner join syscomments c on c.id = o

Good PHP Metric tools [closed]

匆匆过客 提交于 2019-11-27 18:22:36
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 SourceMonitor before but it does not support PHP, same with Code Analyzer . Has anyone used and can recommend any tools for getting code metrics from PHP code? My company provides a variety of PHP tools for measuring software quality, both statically and dynamically. The SD Source Code Search Engine is an interactive GUI that allows you to search across large bodies of source code (e.g., PHP and HTML) quickly and easily. It provides fast searches by indexing the

Query to list SQL Server stored procedures along with lines of code for each procedure

元气小坏坏 提交于 2019-11-27 00:45:58
问题 I want a query that returns a list of all the (user) stored procedures in a database by name, with the number of lines of code for each one. i.e. sp_name lines_of_code -------- ------------- DoStuff1 120 DoStuff2 50 DoStuff3 30 Any ideas how to do this? 回答1: select t.sp_name, sum(t.lines_of_code) - 1 as lines_ofcode, t.type_desc from ( select o.name as sp_name, (len(c.text) - len(replace(c.text, char(10), ''))) as lines_of_code, case when o.xtype = 'P' then 'Stored Procedure' when o.xtype in

Python: try statement in a single line

拥有回忆 提交于 2019-11-26 15:48:49
问题 Is there a way in python to turn a try/except into a single line? something like... b = 'some variable' a = c | b #try statement goes here Where b is a declared variable and c is not... so c would throw an error and a would become b ... 回答1: There is no way to compress a try / except block onto a single line in Python. Also, it is a bad thing not to know whether a variable exists in Python, like you would in some other dynamic languages. The safer way (and the prevailing style) is to set all