CodePro AnalytiX is now offered as a free download by Google. Please stay tuned for exciting new announcements coming soon on the Google Web Toolkit blog http://googlewebtoolkit.blogspot.com/.
To opt-in to receive emails about CodePro AnalytiX and other Google Developer Tools, please visit http://code.google.com/webtoolkit/tools/optin.html.
CodePro AnalytiX: Java Code Quality and Security Analyisis
CodePro AnalytiX is the premier Java software testing tool for Eclipse developers who want to be active participants in improving the quality and security of the code they produce. CodePro AnalytiX seamlessly integrates into the Eclipse environment, using automated source code analysis to pinpoint quality issues and security vulnerabilities before code reaches QA, or worse, production!
Helping developers reduce errors and decrease security vulnerabilities as they create code, CodePro AnalytiX offers concrete recommendations for fixing most issues. Discover why professional developers have chosen CodePro AnalytiX as the most useful, comprehensive, and easy-to-use Eclipse Java code review tool available.
Deploy CodePro AnalytiX on developer desktops and/or seamlessly integrate it into a continuous or nightly software build system, ensuring high software quality throughout the development process.
WHAT'S NEW
The latest version of CodePro AnalytiX offers support for Eclipse 3.6 and addresses a variety of items to enhance usability.
FEATURES
- Static code analysis (1200+ audit rules, including 225 security audit rules to detect security vulnerabilities)
- Defect detection, repair and reporting
- Auditing for Java, JSP, JSF, Struts, Hibernate and XML
- Advanced audit filtering
- Define, distribute and enforce quality standards across development teams with integrated team collaboration
- Automated JUnit test generation for both JUnit 3 and JUnit 4
- Mock Objects support
- JUnit Testing for Spring, Struts, JSF and EJB frameworks
- JUnit test editor
- Analysis and reporting for duplicate code, dead code and dependencies
- Code metrics with drilldown & triggers
- Code coverage analysis
- Powerful management reporting
- Seamless integration with Eclipse, Rational, WebSphere and MyEclipse; supports Rational Application Developer v7.5
ACKNOWLEDGEMENTS
"SAS has used Instantiations products for several years now and we have always been very pleased with the products themselves as well as the support that we have received. Instantiations is a world-class organization. Because our software is used to drive key business decisions, it's critical that we deliver high-quality software, and implementing CodePro AnalytiX has allowed us to automate the process of enforcing programming standards and best practices."
--Rich Main, Director, Business Intelligence Reporting, SAS.
Reviews
Unable to install the CodePro AnalytiX in Eclipse Helios 3.6 SR2
I am getting the following error when I am trying to install from the site:
"dl.google.com/eclipse/inst/codepro/latest/3.6"
It is not working. So I downloaded the content.jar from the location "dl.google.com/eclipse/inst/codepro/latest/3.6/content.jar" but when I tried installing them I hit the following error.
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.coverage,7.1.0.r36x201109091130
No repository found containing: org.eclipse.update.feature,com.instantiations.assist.eclipse.coverage,7.1.0.r36x201109091130
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.coverage.ui,7.1.0.r36x201109091130
No repository found containing: osgi.bundle,com.instantiations.common.core,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.common.help,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.common.ui,6.0.0.r37x201109091114
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.analysis.utilities,7.1.0.r36x201109091123
No repository found containing: osgi.bundle,com.instantiations.eclipse.debug,6.0.0.r37x201109091114
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.shared,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.eclipse.startup,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.eclipse.util,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.tools,6.0.0.r37x201109091114
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: org.eclipse.update.feature,com.instantiations.assist.eclipse.ant,7.1.0.r36x201109091147
No repository found containing: org.eclipse.update.feature,com.instantiations.assist.eclipse.audit,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.coverage,7.1.0.r37x201109091130
No repository found containing: org.eclipse.update.feature,com.instantiations.assist.eclipse.coverage,7.1.0.r37x201109091130
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.coverage.ui,7.1.0.r37x201109091130
No repository found containing: osgi.bundle,com.instantiations.clospan,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.common.core,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.common.help,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.common.ui,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.cpminer,7.1.0.r36x201109091143
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.analysis.appanalysis.feature,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.similarcode,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.similarcode.help,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.similarcode.ui,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.utilities,7.1.0.r37x201109091123
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.analysis.utilities,7.1.0.r37x201109091123
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.utilities.ui,7.1.0.r37x201109091123
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.core.feature,7.1.0.r36x201109091135
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.coverage.codepro,7.1.0.r36x201109091140
No repository found containing: osgi.bundle,com.instantiations.eclipse.coverage.codepro.ui,7.1.0.r36x201109091140
No repository found containing: osgi.bundle,com.instantiations.eclipse.debug,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.eclipse.mailservice,7.1.0.r37x201109091123
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.shared,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.eclipse.startup,6.0.0.r37x201109091114
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.unittester.feature,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.eclipse.util,6.0.0.r37x201109091114
No repository found containing: osgi.bundle,com.instantiations.swt.graph,7.1.0.r37x201109091123
No repository found containing: osgi.bundle,com.instantiations.tools,6.0.0.r37x201109091114
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.admin,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.analysis,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.analysis.ant,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.analysis.dependency.ui,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.analysis.ui,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.ant,7.1.0.r36x201109091147
No repository found containing: org.eclipse.update.feature,com.instantiations.assist.eclipse.ant,7.1.0.r36x201109091147
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.ant.task,7.1.0.r36x201109091147
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.ant.ui,7.1.0.r36x201109091147
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.ant.ui.task,7.1.0.r36x201109091147
No repository found containing: org.eclipse.update.feature,com.instantiations.assist.eclipse.audit,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.core,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.core.ant,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.core.ui,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.coverage,7.1.0.r36x201109091130
No repository found containing: org.eclipse.update.feature,com.instantiations.assist.eclipse.coverage,7.1.0.r36x201109091130
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.coverage.ui,7.1.0.r36x201109091130
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.doc,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.fragment.jdt,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.fragment.jdt.core,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.fragment.swt,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.fragment.ui.ide,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.fragment.ui.workbench,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.fragment.ui.workbench.texteditor,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.javadoc,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.junit,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.junit.editor,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.pattern,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.assist.eclipse.scheduler,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.clospan,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.common.core,6.0.0.r36x201109091114
No repository found containing: osgi.bundle,com.instantiations.common.help,6.0.0.r36x201109091114
No repository found containing: osgi.bundle,com.instantiations.common.ui,6.0.0.r36x201109091114
No repository found containing: osgi.bundle,com.instantiations.cpminer,7.1.0.r36x201109091143
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.analysis.appanalysis.feature,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.audit.hibernate,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.audit.javaserverfaces,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.audit.security,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.audit.spring,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.audit.struts,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.audit.webservices,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.audit.webservices.ui,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.dataflow,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.deadcode,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.deadcode.ui,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.expression,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.flowpath,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.indexer,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.similarcode,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.similarcode.help,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.similarcode.ui,7.1.0.r36x201109091143
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.spelling,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.team,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.team.ui,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.ui.audit.spring,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.ui.audit.struts,7.1.0.r36x201109091206
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.utilities,7.1.0.r36x201109091123
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.analysis.utilities,7.1.0.r36x201109091123
No repository found containing: osgi.bundle,com.instantiations.eclipse.analysis.utilities.ui,7.1.0.r36x201109091123
No repository found containing: osgi.bundle,com.instantiations.eclipse.ast.editor,7.1.0.r36x201109091135
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.core.feature,7.1.0.r36x201109091135
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.coverage.codepro,7.1.0.r36x201109091140
No repository found containing: osgi.bundle,com.instantiations.eclipse.coverage.codepro.ui,7.1.0.r36x201109091140
No repository found containing: osgi.bundle,com.instantiations.eclipse.debug,6.0.0.r36x201109091114
No repository found containing: osgi.bundle,com.instantiations.eclipse.junit.ejb3,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.eclipse.junit.jsf,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.eclipse.junit.spring,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.eclipse.junit.struts2,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.eclipse.mail,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.eclipse.mail.ui,7.1.0.r36x201109091135
No repository found containing: osgi.bundle,com.instantiations.eclipse.mailservice,7.1.0.r36x201109091123
No repository found containing: osgi.bundle,com.instantiations.eclipse.model.jsp,7.1.0.r36x201109091135
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.shared,6.0.0.r36x201109091114
No repository found containing: osgi.bundle,com.instantiations.eclipse.startup,6.0.0.r36x201109091114
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.unittester.feature,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.eclipse.util,6.0.0.r36x201109091114
No repository found containing: osgi.bundle,com.instantiations.swt.graph,7.1.0.r36x201109091123
No repository found containing: osgi.bundle,com.instantiations.swt.grid,7.1.0.r36x201109091155
No repository found containing: osgi.bundle,com.instantiations.tools,6.0.0.r36x201109091114
An error occurred while collecting items to be installed
session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: org.eclipse.update.feature,com.instantiations.eclipse.shared,6.0.0.r36x201109091114
Regards CodePro
Hi,
I was not find Mark Johnson's email and therefore decided ask here. Is it possible to use this plugin for . cls files. Could this tool be used for cls files (which is a Visual Basic Programming language). Does this tool detect unused code (such as no reference to other classes) and point them out? I know there is the uc detector for Java, but that did not work on my cls files.
I would really appreciate, if you could help me out there.
Kind regards,
A
java.lang.IllegalArgumentException: Illegal Capacity: -214748364
Getting below error while generating JUnit test cases:
!ENTRY com.instantiations.eclipse 4 0 2012-01-19 16:44:57.000
!MESSAGE Failed during test case generation
!STACK 0
java.lang.IllegalArgumentException: Illegal Capacity: -2147483648
at java.util.ArrayList.(Unknown Source)
at com.instantiations.assist.eclipse.junit.generation.values.ExecutableExpressionBuilder$ExpressionBuilderHelper.createInitializerFor(ExecutableExpressionBuilder.java:775)
at com.instantiations.assist.eclipse.junit.generation.values.ExecutableExpressionBuilder$ExpressionBuilderHelper.visit(ExecutableExpressionBuilder.java:261)
at com.instantiations.eclipse.analysis.dataflow.values.ArrayValueSet.accept(ArrayValueSet.java:188)
at com.instantiations.assist.eclipse.junit.generation.values.ExecutableExpressionBuilder.createValueFor(ExecutableExpressionBuilder.java:149)
at com.instantiations.assist.eclipse.junit.generation.values.ExecutableExpressionBuilder.createValueFor(ExecutableExpressionBuilder.java:125)
at com.instantiations.assist.eclipse.junit.generation.core.DefaultTypeTestGenerator.buildValueFor(DefaultTypeTestGenerator.java:672)
at com.instantiations.assist.eclipse.junit.generation.core.DefaultTypeTestGenerator.buildValueForFixtureParameter(DefaultTypeTestGenerator.java:645)
at com.instantiations.assist.eclipse.junit.generation.core.DefaultTypeTestGenerator.generateTestsFor(DefaultTypeTestGenerator.java:499)
at com.instantiations.assist.eclipse.junit.generation.core.DefaultTypeTestGenerator.generateNewTestFor(DefaultTypeTestGenerator.java:339)
at com.instantiations.assist.eclipse.junit.generation.core.DefaultTypeTestGenerator.generateTestFor(DefaultTypeTestGenerator.java:163)
at com.instantiations.assist.eclipse.junit.generation.core.CompilationUnitTestGenerator.generateTestFor(CompilationUnitTestGenerator.java:172)
at com.instantiations.assist.eclipse.junit.ui.util.NewTestCaseGenerator.generateTests(NewTestCaseGenerator.java:676)
at com.instantiations.assist.eclipse.junit.ui.util.NewTestCaseGenerator.generateAllTestCases(NewTestCaseGenerator.java:319)
at com.instantiations.assist.eclipse.junit.ui.util.NewTestCaseGenerator.generateTestCases(NewTestCaseGenerator.java:271)
at com.instantiations.assist.eclipse.junit.generation.core.TestGenerationService$TestGenerationJob.generateTests(TestGenerationService.java:214)
at com.instantiations.assist.eclipse.junit.generation.core.TestGenerationService$TestGenerationJob.runInWorkspace(TestGenerationService.java:190)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
please help me to solve this issue.
junit genertion always fails
Lot of Error in the Tool
!ENTRY com.instantiations.eclipse 4 0 2011-01-10 13:16:20.944
!MESSAGE Failed during test case generation
!STACK 0
java.lang.NullPointerException
at
com.instantiations.assist.eclipse.junit.generation.util.UnitTestValueManager.(UnitTestValueManager.java:147)
at
com.instantiations.assist.eclipse.junit.generation.core.DefaultTypeTestGenerator.generateNewTestFor(DefaultTypeTestGenerator.java:311)
at
com.instantiations.assist.eclipse.junit.generation.core.DefaultTypeTestGenerator.generateTestFor(DefaultTypeTestGenerator.java:163)
at
com.instantiations.assist.eclipse.junit.generation.core.CompilationUnitTestGenerator.generateTestFor(CompilationUnitTestGenerator.java:172)
at
com.instantiations.assist.eclipse.junit.ui.util.NewTestCaseGenerator.generateTests(NewTestCaseGenerator.java:676)
at
com.instantiations.assist.eclipse.junit.ui.util.NewTestCaseGenerator.generateAllTestCases(NewTestCaseGenerator.java:319)
at
com.instantiations.assist.eclipse.junit.ui.util.NewTestCaseGenerator.generateTestCases(NewTestCaseGenerator.java:271)
at
com.instantiations.assist.eclipse.junit.generation.core.TestGenerationService$TestGenerationJob.generateTests(TestGenerationService.java:214)
at
com.instantiations.assist.eclipse.junit.generation.core.TestGenerationService$TestGenerationJob.runInWorkspace(TestGenerationService.java:190)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Reproducible: Always
Tool works well, useful
The tool works well for me -- I use the code duplication (similarity) a lot as well as the code analysis. Both are excellent. I don't use the junit since I use TestNG so I can't speak to that.
The contextual menus are where I'd expect and you don't need to read any documentation to get going and make it useful (although you might if you want something specific).
Two thumbs up! One of the better plugins I've used over the years.
Good analysis tools, weak testing tools
I tested the tool with Eclipse 3.6 - Everyting is great except testing. Menu items for code coverage are not existent in my environment (or the documentation is not up to date). I can use code coverage when I write my own AllTests class and define an according suite what is a little bit copious. There is an option in Preferences to decide between JUnit 3 and 4 but the test editor doesn't work with JUnit4 (you get an exception). What I really hate is that I am no longer able to run tests (Test classes) from the context menu with run -> this menu item is gone. At the moment I am not sure if it isn't better to uninstall the tool until testing is working better. I hope, Google will fix that soon :-)