Tools for Line of Code Metrix

rajeshkumar created the topic: Tools for Line of Code Metrix

Dear,

Please find a list of Tools which will help you out for LOC(Lines of Code), SLOC, KLOC(Kilo Line of code)etc..

CAST
Sonar
SLOC
RSM
LocMetrics
EZ-Metrics
Metrixware
Parasoft (Jtest)
Squale
KODERS
PRACTILINE
POWERSOFTWARE
CLOC
Unified CodeCount (UCC)
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re:Tools for Line of Code Metrix

Let me know if you are looking for more informatio about all these SLOC (Source lines of code) Tools.

I have some research papers.

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

ravikishore.kota1@gmail.com replied the topic: Re:Tools for Line of Code Metrix

Hi,

There are lots of different types of tools here 🙂

You could also take a look at Kalistick and its Quality Cockpit .

It the first tool based on SaaS model : analysis are performed on our servers, which allows to build a huge knowledge database and to improve continuously our metrics and rules. About metrics, one of our characteristics is to propose custom metrics correlated from other raw metrics, e.g. to identify the most relevant methods to test.

Feel free to contact me if you want more information, I am the CTO of Kalistick.

Sylvain FRANCOIS

Tagged :

Expect script for Windows

vijayakumar.cm created the topic: Expect script for Windows
Hi,

I’m executing one expect script from windows to do automatic FTP to Unix server.

Error msg:-
D:\expect>tclsh85 telnet.exp
Connecting to 10.118.215.14 to upload the latest build.
invalid command name “spawn”
while executing
“spawn ftp $hostname”
(file “telnet.exp” line 17)

do anyone have any idea about this error/expect script for windows?

Regards,
Vijay

Tagged :

Reporting the developers responsible for most viol

scmuser created the topic: Reporting the developers responsible for most viol
hi,
I was doing a demo of sonar to our project manager and senior project manager in order to push for usage of Sonar in our projects.

They have come up with a question of whether is it possible to identify the developers who is responsible of most violations/duplications on the project.

We have a feature in Sonar (BLAME) where it tries to show the developer who is responsible for each line of Code in a file.

They wanted to know over all view of who is responsible for bad code at a project level.

Is there any way in SONAR to get that kind of report?

Tagged :

Sonar Starter Issues in Linux.

scmuser created the topic: Sonar Starter Issues in Linux.
Sonar Starter Issues in Linux.

Hi,

After installing Sonar in Linux i am finding very strnage issues…Any help on this???

Machine Info: uname -a
Linux CMP_NAME 2.6.9-67.EL #1 Wed Nov 7 13:41:13 EST 2007 i686 i686 i386 GNU/Linux

Sonar version:sonar-2.2

Database: MySql

JAVA VERSION: jdk1.6.0_20

START SCRIPT Base I am trying: linux-x86-32

LOG FILE

STATUS | wrapper  | 2010/09/23 13:40:38 | --> Wrapper Started as Daemon
STATUS | wrapper  | 2010/09/23 13:40:38 | Java Service Wrapper Community Edition 3.3.0
STATUS | wrapper  | 2010/09/23 13:40:38 |   Copyright (C) 1999-2008 Tanuki Software, Inc.  All Rights Reserved.
STATUS | wrapper  | 2010/09/23 13:40:38 |     http://wrapper.tanukisoftware.org
STATUS | wrapper  | 2010/09/23 13:40:38 | 
STATUS | wrapper  | 2010/09/23 13:40:38 | Launching a JVM...
INFO   | jvm 1    | 2010/09/23 13:40:38 | Warning: -XX:MaxPermSize=128m not understood. Ignoring.
INFO   | jvm 1    | 2010/09/23 13:40:38 | Warning: -Xms256m not understood. Ignoring.
INFO   | jvm 1    | 2010/09/23 13:40:38 | Warning: -Xmx512m not understood. Ignoring.
ERROR  | wrapper  | 2010/09/23 13:40:38 | JVM exited while loading the application.
INFO   | jvm 1    | 2010/09/23 13:40:38 | Exception in thread "main" java.lang.VerifyError: verification failed at PC 148 in org.tanukisoftware.wrapper.WrapperManager:run(()V): recursive subroutine call
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at _Jv_BytecodeVerifier.verify_fail(byte, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.class$(java.lang.String) (Unknown Source)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.WrapperSimpleApp(java.lang.String[]) (Unknown Source)
INFO   | jvm 1    | 2010/09/23 13:40:38 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.main(java.lang.String[]) (Unknown Source)
STATUS | wrapper  | 2010/09/23 13:40:43 | Launching a JVM...
INFO   | jvm 2    | 2010/09/23 13:40:43 | Warning: -XX:MaxPermSize=128m not understood. Ignoring.
INFO   | jvm 2    | 2010/09/23 13:40:43 | Warning: -Xms256m not understood. Ignoring.
INFO   | jvm 2    | 2010/09/23 13:40:43 | Warning: -Xmx512m not understood. Ignoring.
ERROR  | wrapper  | 2010/09/23 13:40:43 | JVM exited while loading the application.
INFO   | jvm 2    | 2010/09/23 13:40:43 | Exception in thread "main" java.lang.VerifyError: verification failed at PC 148 in org.tanukisoftware.wrapper.WrapperManager:run(()V): recursive subroutine call
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at _Jv_BytecodeVerifier.verify_fail(byte, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.class$(java.lang.String) (Unknown Source)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.WrapperSimpleApp(java.lang.String[]) (Unknown Source)
INFO   | jvm 2    | 2010/09/23 13:40:43 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.main(java.lang.String[]) (Unknown Source)
STATUS | wrapper  | 2010/09/23 13:40:47 | Launching a JVM...
INFO   | jvm 3    | 2010/09/23 13:40:48 | Warning: -XX:MaxPermSize=128m not understood. Ignoring.
INFO   | jvm 3    | 2010/09/23 13:40:48 | Warning: -Xms256m not understood. Ignoring.
INFO   | jvm 3    | 2010/09/23 13:40:48 | Warning: -Xmx512m not understood. Ignoring.
INFO   | jvm 3    | 2010/09/23 13:40:48 | Exception in thread "main" 
ERROR  | wrapper  | 2010/09/23 13:40:48 | JVM exited while loading the application.
INFO   | jvm 3    | 2010/09/23 13:40:48 | java.lang.VerifyError: verification failed at PC 148 in org.tanukisoftware.wrapper.WrapperManager:run(()V): recursive subroutine call
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at _Jv_BytecodeVerifier.verify_fail(byte, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.class$(java.lang.String) (Unknown Source)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.WrapperSimpleApp(java.lang.String[]) (Unknown Source)
INFO   | jvm 3    | 2010/09/23 13:40:48 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.main(java.lang.String[]) (Unknown Source)
STATUS | wrapper  | 2010/09/23 13:40:52 | Launching a JVM...
INFO   | jvm 4    | 2010/09/23 13:40:52 | Warning: -XX:MaxPermSize=128m not understood. Ignoring.
INFO   | jvm 4    | 2010/09/23 13:40:52 | Warning: -Xms256m not understood. Ignoring.
INFO   | jvm 4    | 2010/09/23 13:40:52 | Warning: -Xmx512m not understood. Ignoring.
ERROR  | wrapper  | 2010/09/23 13:40:53 | JVM exited while loading the application.
INFO   | jvm 4    | 2010/09/23 13:40:53 | Exception in thread "main" java.lang.VerifyError: verification failed at PC 148 in org.tanukisoftware.wrapper.WrapperManager:run(()V): recursive subroutine call
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at _Jv_BytecodeVerifier.verify_fail(byte, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.class$(java.lang.String) (Unknown Source)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.WrapperSimpleApp(java.lang.String[]) (Unknown Source)
INFO   | jvm 4    | 2010/09/23 13:40:53 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.main(java.lang.String[]) (Unknown Source)
STATUS | wrapper  | 2010/09/23 13:40:57 | Launching a JVM...
INFO   | jvm 5    | 2010/09/23 13:40:57 | Warning: -XX:MaxPermSize=128m not understood. Ignoring.
INFO   | jvm 5    | 2010/09/23 13:40:57 | Warning: -Xms256m not understood. Ignoring.
INFO   | jvm 5    | 2010/09/23 13:40:57 | Warning: -Xmx512m not understood. Ignoring.
ERROR  | wrapper  | 2010/09/23 13:40:57 | JVM exited while loading the application.
INFO   | jvm 5    | 2010/09/23 13:40:57 | Exception in thread "main" java.lang.VerifyError: verification failed at PC 148 in org.tanukisoftware.wrapper.WrapperManager:run(()V): recursive subroutine call
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at _Jv_BytecodeVerifier.verify_fail(byte, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at _Jv_BytecodeVerifier.verify_instructions_0() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at _Jv_VerifyMethod(_Jv_InterpMethod) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at java.lang.VMClassLoader.linkClass0(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at java.lang.VMClassLoader.resolveClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at java.lang.Class.forName(java.lang.String, boolean, java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at java.lang.Class.forName(java.lang.String) (/usr/lib/libgcj.so.5.0.0)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.class$(java.lang.String) (Unknown Source)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.WrapperSimpleApp(java.lang.String[]) (Unknown Source)
INFO   | jvm 5    | 2010/09/23 13:40:57 |    at org.tanukisoftware.wrapper.WrapperSimpleApp.main(java.lang.String[]) (Unknown Source)
FATAL  | wrapper  | 2010/09/23 13:40:57 | There were 5 failed launches in a row, each lasting less than 300 seconds.  Giving up.
FATAL  | wrapper  | 2010/09/23 13:40:57 |   There may be a configuration problem: please check the logs.
STATUS | wrapper  | 2010/09/23 13:40:57 | <-- Wrapper Stopped
Tagged :

Database query for Sonar setup

rajeshkumar created the topic: database query for Sonar setup

CREATE USER 'sonar123'@'%' IDENTIFIED BY '***';
(Create a User in Mysql DB)
GRANT USAGE ON * . * TO 'sonar123'@'%' IDENTIFIED BY '***' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
(Grant Access to user” Sonar123”)
CREATE DATABASE IF NOT EXISTS `sonar123` ;

GRANT ALL PRIVILEGES ON `sonar123` . * TO 'sonar123'@'%';

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

max_allowed_packet issues in Sonar

scmuser created the topic: max_allowed_packet issues in Sonar

Hi,
When I execute sonar file to generate the code quality matrix.

I get following error…any help

You can change this value on the server by setting the max_allowed_packet' variable.

scmuser replied the topic: Re:max_allowed_packet issues in Sonar

I go Following Solution for this…

You are using XAMPP:
Change the value of max_allowed_packet = 1M to 16M in lampp/etc/my.cnf

You are using mysql standalone or WAMP

Change the value of max_allowed_packet = 1M to 16M in lampp/etc/my.ini

Tagged :

Useful links for Sonar with Ant

rajeshkumar created the topic: Useful links for Sonar with Ant

Sonar with Ant
sonar.codehaus.org/a-new-hudson-plugin-f…egration-with-sonar/
old.nabble.com/Ant-Integration-td20105950.html
old.nabble.com/JUNIT—ANT-Build-File-td21797773.html
docs.codehaus.org/display/SONAR/Analyzing+Java+Projects

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re: Useful links for Sonar with Ant
Sonar and Other Quality Tools

sonar.codehaus.org/what-makes-checkstyle…acker-complementary/
itspice.net/cms/tools/java-development/s…e-quality-management
ganeshrenganathan.wordpress.com/2009/07/29/sonar-hudson/

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

RSM, Sonar, Parasoft and others CAST

scmjobs created the topic: RSM, Sonar, Parasoft and others CAST

Some useful URL for RSM, Sonar, Parasoft and others CAST

msquaredtechnologies.com/m2rsm/docs/rsm_metrics_narration.htm
www.locmetrics.com/alternatives.html
en.wikipedia.org/wiki/Source_lines_of_code
msquaredtechnologies.com/m2rsm/index.html
www.castsoftware.com/

Tagged :