Download - RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

Transcript
Page 1: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

A Tool for Extracting Relative Thresholds for Source Code Metrics

APPLIED SOFTWARE ENGINEERING RESEARCH

GROUP

/Federal Institute

Minas Gerais

Paloma Oliveira @PalomaFormiga

Fernando P. Lima

Marco Túlio Valente @mtov

Alexander Serebrenik @aserebrenik

Page 2: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

2

Page 3: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

?

Page 4: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

?

Unavoidable!

Page 5: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

Relative Thresholds

Paloma Oliveira, Marco Tulio Valente, Fernando Paim Lima: Extracting relative thresholds for source code metrics. CSMR-WCRE 2014: 254-263

For metric M, p% of the entities should not exceed k

84%94%

Page 6: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

84%94%

For metric M, p% of the entities should not

exceed k

MAX

MIN

Page 7: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics
Page 8: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

Applicability

• Class-level metrics• “Low” better than “high”• Heavy-tailed

✓ (S)LOC, NOA, NOM, FAN-OUT, RFC, WMC…

✗ DIT, Dn

Page 9: RTTOOL: A Tool for Extracting Relative Thresholds for Source Code Metrics

http://aserg.labsoft.dcc.ufmg.br/rttool/