coding standards & code verification through together cc

Post on 14-Apr-2017

32 Views

Category:

Internet

4 Downloads

Preview:

Click to see full reader

TRANSCRIPT

© 2004 Hewlett-Packard Development Company, L.P.The information contained herein is subject to change without notice

Coding Standards & Code Verification through Together CC

Anand Ramanathan

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 2

Agenda• Need• Java Coding standards overview

• Project creation in Together CC

• Configuring the code checklist into Together CC

• Generating the audit & metrics reports on the project

• Understanding the reports, segregating • design level & coding level defects

• Questions / discussions

• Summary and close-out

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 3

Quality Assurance –Audits & Metrics

−Purpose: −The audits & metrics analysis are quality

assurance features which helps to enforce the coding standards & conventions in the project.

−Audits:−Qualify the source code

−Metrics:−Quantify the source code

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 4

Java Coding standards

• http://java.sun.com/docs/codeconv/

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 5

Java Coding standards

• File Names• File Organization• Indentation• Comments• Declarations• Naming conventions

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 6

Project creation in Together CC

• Three ways – 1. New Project expert dialog 2. New Project dialog

3. Right click the source folder- select “New project”

• Project with existing code

• Project without existing code

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 7

Configuring the code checklist - Audits• Tools -> Audits• Change the settings in Audit dialog box, if needed• Select/ Unselect• Set the severity• Click Loadset button and select your own

configuration file• In configuration file, values can be updated as per

need

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 8

Configuring the code checklist - Metrics• Tools -> Metrics• Change the settings in Metrics dialog box, if

needed• Select/ Unselect• Set the Limits and aggregation• Click Loadset button and select your own

configuration file• In configuration file, values can be updated as per

need

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 9

Generating the audit reports

• Click start in the Audit dialog• Sort, View description• On the right-click menu of the results table, point

to Export

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 10

Generating the Metrics reports

• Click start in the Metrics dialog• On the right-click menu of the results table, point

to Export• Pictorial result

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 11

Demo

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 12

Q & A

05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 13

Thank You

top related