facebookincubator / gazebo_lint
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
  • 9% duplication:
    • 884 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 87 duplicated lines
  • 9 duplicates
system9% (87 lines)
Duplication per Extension
rs10% (87 lines)
Duplication per Component (primary)
gazebo_lint/src13% (79 lines)
linter_test/src3% (8 lines)
ROOT0% (0 lines)
gazebo_lint0% (0 lines)
linter_test0% (0 lines)
Longest Duplicates
The list of 9 longest duplicates.
See data for all 9 duplicates...
Size#FoldersFilesLinesCode
9 x 2 gazebo_lint/src
gazebo_lint/src
314:324 (2%)
348:358 (2%)
view
8 x 2 gazebo_lint/src
gazebo_lint/src
1:8 (4%)
1:8 (1%)
view
8 x 2 gazebo_lint/src
linter_test/src
1:8 (1%)
1:8 (3%)
view
8 x 2 gazebo_lint/src
linter_test/src
1:8 (4%)
1:8 (3%)
view
7 x 2 gazebo_lint/src
gazebo_lint/src
244:250 (1%)
266:272 (1%)
view
7 x 2 gazebo_lint/src
gazebo_lint/src
203:209 (1%)
288:294 (1%)
view
6 x 2 gazebo_lint/src
gazebo_lint/src
203:208 (1%)
239:244 (1%)
view
6 x 2 gazebo_lint/src
gazebo_lint/src
551:556 (1%)
578:583 (1%)
view
6 x 2 gazebo_lint/src
gazebo_lint/src
239:244 (1%)
288:293 (1%)
view