Java Code Review with CheckStyle

Slides:



Advertisements
Similar presentations
Using CrossCheck in Editorial Manager® Prepared by: Adam Nicely.
Advertisements

Click Here for Download the Installation Files Click Here for Guide How to Extract Installation Files.
Using Eclipse. Getting Started There are three ways to create a Java project: 1:Select File > New > Project, 2 Select the arrow of the button in the upper.
Microsoft Expression Web-Illustrated Unit L: Using Code Tools.
Delta Debugging - Demo Presented by: Xia Cheng. Motivation Automation is difficult Automation is difficult fail analysis needs complete understanding.
Citrix Metaframe Solution Software Installation
1 of 7 This document is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS DOCUMENT. © 2007 Microsoft Corporation.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Installing Ricoh Driver. Items you need to know IP address of Printer Options that are installed And Paper Sizes To get all this information you can print.
Mozilla Thunderbird Roderick Bautista Cheryl Knott Gyeong Lee Lee Raynes Kelly Santos.
SOUL Software Installation
How to Download and Install a Sharp Print Driver on a Mac.
Microsoft Internet Security and Acceleration (ISA) Server 2004 is an advanced packet checking and application-layer firewall, virtual private network.
Selenium Web Test Tool Training Using Ruby Language Discover the automating power of Selenium Kavin School Kavin School Presents: Presented by: Kangeyan.
Introduction to Android. Android as a system, is a java based operating system that runs on the Linux kernel. The system is very lightweight and full.
IT 211 Project Integration and Deployment Lab #11.
LLRP GUI Client User Guide
Teach Yourself Windows 95 Module 5: Customizing and Maintaining Your Computer.
Plug-in Development Environment. Session Outline Tools Installation Configuration New Project Basic Debugging Remote Debugging.
Basic Instructions on how to use One Drive and share files. ONE Drive Your LogoYour own footer.
Project Deployment IT [211 CAP] How to convert your project to a full application.
Prachi Chitnis.  The CSS feel  SDS – Synoptic Display Studio  ADL Converter  PV table, Probe…
An Introduction to Designing and Executing Workflows with Taverna Aleksandra Pawlik materials by: Katy Wolstencroft University of Manchester.
GumTree Development Environment Setup Windows Only Compatible with Eclipse 3.2 M3 (Last update: 16/11/05)
Downloading and Installing Autodesk Inventor Professional 2015 This is a 4 step process 1.Register with the Autodesk Student Community 2.Downloading the.
Liferay Installation Prepared by: Do Xuan Hai 8 August 2011.
Installing Repast in the Eclipse IDE Charlie Gieseler 6/28/04.
Click your mouse to continue. The Office Shortcut Bar The Office Shortcut Bar contains program buttons that, when clicked, start new documents or start.
SilkTest 2008 R2 SP1: Silk4J Introduction. ConfidentialCopyright © 2008 Borland Software Corporation. 2 What is Silk4J? Silk4J enables you to create functional.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
Surya Bahadur Kathayat Outline  Ramses  Installing Ramses  Ramses Perspective (Views and Editors)  Importing/Exporting Example.
Loader Tutorial Set Up. Requirements Java 7 Eclipse IvyIDE plugin Git Optional: Ant Maven.
Gensuite ® Step-by-Step Guide for the setup of Gensuite Compliance Calendar and Training Calendar integration with Microsoft Outlook Some computers experience.
1 /17 Installing and Configuring TaxWise © 2006, Universal Tax Systems, Inc. All Rights Reserved. Installing and Configuring TaxWise Objectives –In this.
Maven. Introduction Using Maven (I) – Installing the Maven plugin for Eclipse – Creating a Maven Project – Building the Project Understanding the POM.
IT Desktop Management GoToMeeting – Online Meeting Service Attendee Guide May 2007 Prepared by Angela Mars IT Education and Training.
CACI Proprietary Information | Date 1 PD² SR13 Client Upgrade Name: Semarria Rosemond Title: Systems Analyst, Lead Date: December 8, 2011.
Copyright © 2010 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are trademarks of Accenture. ODS Tools – Fannie Mae.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
This is an introduction to configuring Microsoft Outlook for Office 2010: Forwarding FAMIS work order opening and closing s to other users or alternate.
1.Switch on the computer and wait for loading. 2.Select the Windows 7 OS at the end of the list. 3.Click on the link ‘Administrator’ 4.Enter the administrator.
Downloading and Installing GRASP-AF Workshop Ian Robson Information Analyst, North of England Cardiovascular Network.
PyDev: Python plug-in for Eclipse Yevgeniy Bangiyev 02/07/07 Yevgeniy Bangiyev 02/07/07.
ML-Dev: SML Plug-in for Eclipse Yevgeniy Bangiyev 02/07/07 Yevgeniy Bangiyev 02/07/07.
Getting Eclipse for C/C++ Development
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
ATS Application Programming: Java Programming
Chapter Topics 15.1 Graphical User Interfaces
2 At the top of the zone in which you want to add the Web Part, click Add a Web Part. In the Add Web Parts to [zone] dialog box, select the check box of.
How to access your work from home or another computer
Install and Configure CLion
Fix ShareFile Outlook Plugin Installation Issues.
CMPE 152: Compiler Design ANTLR 4 and C++
ALEPH Version 22 Beginning Cataloging
Install Ruby If you are running on Mac OS X, Ruby is preinstalled.
Chapter 2 – Introduction to the Visual Studio .NET IDE
Finding Magazine and Journal Articles in
An Installation Guide of PGP on Windows 2000
Web service.
EBSCOhost Page Composer
Steps in accessing Past Examination Papers
MADE IN USA KEY QUOTE TOOL.
Chapter 15: GUI Applications & Event-Driven Programming
Software Setup & Validation
The Most Popular Android UI Automation Testing Tool Andrii Voitenko
Introduction to RefWorks
Getting Eclipse for C/C++ Development
Review of Previous Lesson
SAG Infotech Private Limited
Presentation transcript:

Java Code Review with CheckStyle

Tools to automate code review & analysis http://en.wikipedia.org/wiki/List_of_tools_for_static_code_analysis JAVA CheckStyle (http://checkstyle.sourceforge.net/)

CheckStyle tool What is Checkstyle? Checkstyle is an open-source development tool to help programmers write Java code that adheres to a coding standard   It automates the process of checking Java code to verify code following standard or not. This makes it ideal for projects that want to enforce a coding standard. Official web site for releases and usage guide-line document http://checkstyle.sourceforge.net/

How Checkstyle works As in the above figure: Checkstyle is add-ins component to IDE/Build tool Coding standard is user pre-defined, and embedded in each XML file Checkstyle will depend on XML file to parse code, then generate checking result to

How Checkstyle works Checkstyle supports add-ins for various Java IDE and Build tools, such as:   Eclipse NetBeans IntelliJ BlueJ Borland JBuilder Maven Ant CruiseControl (..)

Use CheckStyle with Eclipse Sequential steps below help us to setup, define, and run checkstyle in Eclipse Setup add-in to Eclipse: There are two ways to plug the add-in to Eclipse: Manually download library from the official site, and copy to the Eclipse plug-ins folder Make Eclipse to automatically download and update the library

Use CheckStyle with Eclipse Open Eclipse Go to Help Software updates  Find and install Choose “Search for new features to install”, then click the “Next” button Click the “New Remote Site” and input checkstyle website address, like Click “OK” button, then wait for Eclipse to automatically update

Define a coding standard XML file for your own We can create and edit your checkstyle by manually or use editor tool from Eclipse after Eclipse update checkstyle successfully The steps here is example to use the editor From Eclipse, go to Window->Preference, then click CheckStyle node on the left tree. You will see a list of defined CheckStyle Click “New”, choose “Internal Configuration” and name to your checkstyle The editor appeared, as below, and you can walk though sections on the left menu that checkstyle can support to check code

Define a coding standard XML file for your own

Define a coding standard XML file for your own

Active your CheckStyle In the previous step, you already defined a checkstyle. In this section, it will show you the ways to active your checkstyle and apply the checkstyle into your project Right click to your project icon, and choose “Properties” menu, a dialog below appears Click the “Checkstyle” menu and choose your own checkstyle from the available checkstyles list in combo-box 3. Click “OK” to finish

Active your CheckStyle The screen below show us the bar we can execute checkstyle from Eclipse

Active your CheckStyle After click the button “Check code with CheckStyle” you will see checkstyle mark YELLOW NOTE icon to class files Move your mouse to the YELLOW ICON, you will receive a warning message about cause of invalid grammar. Follow that to fix and your invalid code grammar

Active your CheckStyle Checkstyle plugin supports us two reports: - Chart report - Statistic report To use two functions with Eclipse, you can go to Window->Show View->Other to see these both report types as beside:

Active your CheckStyle Click one of them, you will see a dialog appeared with two REPORT GENERATE buttons on the left menu. Then, click to the REPORT button to see report Followings are results of two reports

Active your CheckStyle