1 / 15

A code metric tool for Software Engineering

A code metric tool for Software Engineering. Teng Li. Software Measurement. Why? Mature technologies Larger scale Pursue better control and management Needs for maintain and refractory. Software Measurement. What?

uma
Télécharger la présentation

A code metric tool for Software Engineering

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A code metric tool for Software Engineering Teng Li

  2. Software Measurement Why? • Mature technologies • Larger scale • Pursue better control and management • Needs for maintain and refractory

  3. Software Measurement What? • Measurement is a process to assign numbers for each attribute or factor of an object or an event according to rules. • Key: rules, attributes • We use measurement to get quantified assessment for a software.

  4. Software Metrics • A metric is a measurement function. Software Data Numerical data Metric

  5. Metric for code • Code analysis can reflect potential problems in SW design. • Code quality is related to future maintenance and reuse. • Code metric can help developers to avoid fatal design problem and mitigate risks. E.g. Visual Studio 2008 - Code Metrics Sourceforge - Metrics 1.3.6

  6. Metric for code • Metric Step: • Abstract common flaws in coding, like a data class, useless method or duplicated code fragment. • Define a metric rule, like fetch similarity of two code fragment. • Associate a metric rule with a abstract code characteristic. • Get metric value via computing

  7. Metric for code • Framework Software Choose Model Metric result UI Collected data Factor computing Core computing Data storage Repository Model Template Result

  8. Code Bad Smells • Object-Oriented design • To indicate problematic classes or method • Use metrics to provide evidence • E.g. Data Class God Class God Method Feature Envy

  9. My metric tool • Eclipse based plug-in • Parse code and generate AST(Abstract syntax tree) • Using JDT to get elements in a compile unit • Computing values to indicate potential problematic code(bad smells)

  10. My metric tool • Eclipse based plug-in • Parse code and generate AST(Abstract syntax tree) • Using JDT to get elements in a compile unit • Computing values to indicate potential problematic code(bad smells)

  11. Thanks Questions?

More Related