coding standards & code verification through together cc
TRANSCRIPT
![Page 1: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/1.jpg)
© 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
![Page 2: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/2.jpg)
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
![Page 3: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/3.jpg)
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
![Page 4: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/4.jpg)
05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 4
Java Coding standards
• http://java.sun.com/docs/codeconv/
![Page 5: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/5.jpg)
05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 5
Java Coding standards
• File Names• File Organization• Indentation• Comments• Declarations• Naming conventions
![Page 6: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/6.jpg)
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
![Page 7: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/7.jpg)
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
![Page 8: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/8.jpg)
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
![Page 9: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/9.jpg)
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
![Page 10: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/10.jpg)
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
![Page 11: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/11.jpg)
05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 11
Demo
![Page 12: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/12.jpg)
05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 12
Q & A
![Page 13: Coding standards & code verification through together cc](https://reader036.vdocuments.mx/reader036/viewer/2022062503/58f08c591a28abdf7d8b4589/html5/thumbnails/13.jpg)
05/02/23 Copyright © 2003 HP corporate presentation. All rights reserved. 13
Thank You