Posted by Tocea in Scertify™ Code Downloads on December 17, 2012 with Comments Off
*** IMPORTANT NOTICE ***
Trials for this product are temporarily unavailable, since a major version is coming soon. Stay tuned!.
NOTE: In order to ensure the best experience with our products, you’ll need Eclipse Juno to proceed to Scertify Eclipse plugins installation.
To install Scertify™ Refactoring Eclipse plugin, simply install the new update site (in Eclipse menu Help →
Install new software → Add) :
● Name: Scertify Refactoring plugin
● Location: http://dl.tocea.fr/refactoring/update_site/repository/
If you have already installed the Scertify™ Eclipse plugin in your Eclipse you can simply update it by clicking on (Help → Check for update to obtain the update).
In some cases, a warning message might prompt about authenticity of the software. Click OK to continue the installation.
Once plugin is installed and your Eclipse restarted, go to the Scertify™ preferences (menu Window → Preferences → Scertify Refactoring).
IMPORTANT: If you have an internet connection through a proxy, be sure to have it well configured in Eclipse.
In order to get your Scertify™ license key, you need to create an account in http://cloud.tocea.com. If you already have created your account to try other products, please skip this step and go to step #2.
Fill the registration form with your information. Once you submit the form, 2 emails will be sent to you:
Add your login/password for the Tocea cloud account :
● Login: the e-mail address used when creating your account to Cloud.Tocea.com
● Password: the Scertify™ trial license key you received (“Your license key for product Scertify demo”)
Specify Local Scertify’s url to: http://cloud.tocea.com/ScertifyDL/api/install/demo/
To perform a code refactoring of a file or set of files, right-click on a file (or Shift+Click on files, then right-click) in the Package Explorer view, → Scertify Refactoring → Refactor My Code.
Select the programming rules you wish to apply for code refactoring. In the trial version, 4 refactoring rules are available:
In case of String comparison with a literal, place the literal first. e.g:
|
1 2 3 4 5 6 |
String str = "here";
//Before refactoring
str.equals("there");
//After refactoring
"there".equals(str); |
Replace new Integer(value) by Integer.valueOf(value)
|
1 2 3 4 5 |
//Before refactoring
Integer i = new Integer(4);
//After refactoring
Integer i = Integer.valueOf(4); |
Add braces to conditions not using ones
|
1 2 3 4 5 6 7 8 |
//Before refactoring
if(true)
System.out.println(";)");
//After refactoring
if(true) {
System.out.println(";)");
} |
Add a final to local variable
For a given code statement, only one rule is applied at a time. So, if a code statement needs two corrections, you need to perform two refactoring.
In order to ensure the best experience with our products, you’ll need Eclipse Juno to proceed to Scertify Eclipse plugins installation.
Before using Scertify™, please read our license agreement.
If you’re using Checkstyle and PMD rule repositories, please refer to their license agreement listed below:
Comments are closed.