awslabs / states-language
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 5% duplication:
    • 1,610 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 86 duplicated lines
  • 9 duplicates
system5% (86 lines)
Duplication per Extension
html5% (86 lines)
Duplication per Component (primary)
spec5% (86 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
13 x 2 spec
spec
States.html
States.html
1415:1427 (<1%)
1449:1461 (<1%)
view
9 x 2 spec
spec
States.html
States.html
865:874 (<1%)
876:885 (<1%)
view
8 x 2 spec
spec
States.html
States.html
887:894 (<1%)
898:905 (<1%)
view
7 x 2 spec
spec
States.html
States.html
877:883 (<1%)
887:893 (<1%)
view
7 x 2 spec
spec
States.html
States.html
866:872 (<1%)
898:904 (<1%)
view
7 x 2 spec
spec
States.html
States.html
866:872 (<1%)
887:893 (<1%)
view
7 x 2 spec
spec
States.html
States.html
877:883 (<1%)
898:904 (<1%)
view
7 x 2 spec
spec
States.html
States.html
1284:1290 (<1%)
1351:1357 (<1%)
view
6 x 2 spec
spec
States.html
States.html
832:837 (<1%)
843:848 (<1%)
view