Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-10211

False-positive on JS/TS code duplication

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Duplications
    • Labels:
      None
    • Edition:
      Community

      Description

      The analysis of attached JS file detects a code duplication between lines [2,21] and [11,28].

      The tokens generated by SonarJs sound good:

      Token
        range=Range[from [line=1, lineOffset=0] to [line=1, lineOffset=3]]
        image=var
      
      Token
        range=Range[from [line=1, lineOffset=4] to [line=1, lineOffset=5]]
        image=x
      
      Token
        range=Range[from [line=1, lineOffset=6] to [line=1, lineOffset=7]]
        image==
      
      Token
        range=Range[from [line=1, lineOffset=8] to [line=1, lineOffset=9]]
        image=[
      
      Token
        range=Range[from [line=1, lineOffset=10] to [line=1, lineOffset=11]]
        image={
      
      Token
        range=Range[from [line=2, lineOffset=0] to [line=2, lineOffset=1]]
        image=}
      
      Token
        range=Range[from [line=2, lineOffset=1] to [line=2, lineOffset=2]]
        image=,
      
      Token
        range=Range[from [line=3, lineOffset=0] to [line=3, lineOffset=1]]
        image={
      
      Token
        range=Range[from [line=4, lineOffset=4] to [line=4, lineOffset=9]]
        image=label
      
      Token
        range=Range[from [line=4, lineOffset=9] to [line=4, lineOffset=10]]
        image=:
      
      Token
        range=Range[from [line=4, lineOffset=11] to [line=4, lineOffset=20]]
        image=LITERAL
      
      Token
        range=Range[from [line=4, lineOffset=20] to [line=4, lineOffset=21]]
        image=,
      
      Token
        range=Range[from [line=4, lineOffset=22] to [line=4, lineOffset=26]]
        image=icon
      
      Token
        range=Range[from [line=4, lineOffset=26] to [line=4, lineOffset=27]]
        image=:
      
      Token
        range=Range[from [line=4, lineOffset=28] to [line=4, lineOffset=41]]
        image=LITERAL
      
      Token
        range=Range[from [line=4, lineOffset=41] to [line=4, lineOffset=42]]
        image=,
      
      Token
        range=Range[from [line=4, lineOffset=43] to [line=4, lineOffset=50]]
        image=visible
      
      Token
        range=Range[from [line=4, lineOffset=50] to [line=4, lineOffset=51]]
        image=:
      
      Token
        range=Range[from [line=4, lineOffset=52] to [line=4, lineOffset=57]]
        image=false
      
      Token
        range=Range[from [line=4, lineOffset=57] to [line=4, lineOffset=58]]
        image=,
      
      Token
        range=Range[from [line=5, lineOffset=4] to [line=5, lineOffset=9]]
        image=items
      
      Token
        range=Range[from [line=5, lineOffset=9] to [line=5, lineOffset=10]]
        image=:
      
      Token
        range=Range[from [line=5, lineOffset=11] to [line=5, lineOffset=12]]
        image=[
      
      Token
        range=Range[from [line=6, lineOffset=8] to [line=6, lineOffset=9]]
        image={
      
      Token
        range=Range[from [line=6, lineOffset=9] to [line=6, lineOffset=14]]
        image=label
      
      Token
        range=Range[from [line=6, lineOffset=14] to [line=6, lineOffset=15]]
        image=:
      
      Token
        range=Range[from [line=6, lineOffset=16] to [line=6, lineOffset=24]]
        image=LITERAL
      
      Token
        range=Range[from [line=6, lineOffset=24] to [line=6, lineOffset=25]]
        image=,
      
      Token
        range=Range[from [line=6, lineOffset=26] to [line=6, lineOffset=36]]
        image=routerLink
      
      Token
        range=Range[from [line=6, lineOffset=36] to [line=6, lineOffset=37]]
        image=:
      
      Token
        range=Range[from [line=6, lineOffset=38] to [line=6, lineOffset=39]]
        image=[
      
      Token
        range=Range[from [line=6, lineOffset=39] to [line=6, lineOffset=55]]
        image=LITERAL
      
      Token
        range=Range[from [line=6, lineOffset=55] to [line=6, lineOffset=56]]
        image=]
      
      Token
        range=Range[from [line=6, lineOffset=56] to [line=6, lineOffset=57]]
        image=,
      
      Token
        range=Range[from [line=6, lineOffset=58] to [line=6, lineOffset=65]]
        image=visible
      
      Token
        range=Range[from [line=6, lineOffset=65] to [line=6, lineOffset=66]]
        image=:
      
      Token
        range=Range[from [line=6, lineOffset=67] to [line=6, lineOffset=72]]
        image=false
      
      Token
        range=Range[from [line=6, lineOffset=72] to [line=6, lineOffset=73]]
        image=}
      
      Token
        range=Range[from [line=6, lineOffset=73] to [line=6, lineOffset=74]]
        image=,
      
      Token
        range=Range[from [line=7, lineOffset=8] to [line=7, lineOffset=9]]
        image={
      
      Token
        range=Range[from [line=7, lineOffset=9] to [line=7, lineOffset=14]]
        image=label
      
      Token
        range=Range[from [line=7, lineOffset=14] to [line=7, lineOffset=15]]
        image=:
      
      Token
        range=Range[from [line=7, lineOffset=16] to [line=7, lineOffset=29]]
        image=LITERAL
      
      Token
        range=Range[from [line=7, lineOffset=29] to [line=7, lineOffset=30]]
        image=,
      
      Token
        range=Range[from [line=7, lineOffset=31] to [line=7, lineOffset=41]]
        image=routerLink
      
      Token
        range=Range[from [line=7, lineOffset=41] to [line=7, lineOffset=42]]
        image=:
      
      Token
        range=Range[from [line=7, lineOffset=43] to [line=7, lineOffset=44]]
        image=[
      
      Token
        range=Range[from [line=7, lineOffset=44] to [line=7, lineOffset=61]]
        image=LITERAL
      
      Token
        range=Range[from [line=7, lineOffset=61] to [line=7, lineOffset=62]]
        image=]
      
      Token
        range=Range[from [line=7, lineOffset=62] to [line=7, lineOffset=63]]
        image=,
      
      Token
        range=Range[from [line=7, lineOffset=64] to [line=7, lineOffset=71]]
        image=visible
      
      Token
        range=Range[from [line=7, lineOffset=71] to [line=7, lineOffset=72]]
        image=:
      
      Token
        range=Range[from [line=7, lineOffset=73] to [line=7, lineOffset=78]]
        image=false
      
      Token
        range=Range[from [line=7, lineOffset=78] to [line=7, lineOffset=79]]
        image=}
      
      Token
        range=Range[from [line=7, lineOffset=79] to [line=7, lineOffset=80]]
        image=,
      
      Token
        range=Range[from [line=8, lineOffset=8] to [line=8, lineOffset=9]]
        image={
      
      Token
        range=Range[from [line=8, lineOffset=9] to [line=8, lineOffset=14]]
        image=label
      
      Token
        range=Range[from [line=8, lineOffset=14] to [line=8, lineOffset=15]]
        image=:
      
      Token
        range=Range[from [line=8, lineOffset=16] to [line=8, lineOffset=21]]
        image=LITERAL
      
      Token
        range=Range[from [line=8, lineOffset=21] to [line=8, lineOffset=22]]
        image=,
      
      Token
        range=Range[from [line=8, lineOffset=23] to [line=8, lineOffset=33]]
        image=routerLink
      
      Token
        range=Range[from [line=8, lineOffset=33] to [line=8, lineOffset=34]]
        image=:
      
      Token
        range=Range[from [line=8, lineOffset=35] to [line=8, lineOffset=36]]
        image=[
      
      Token
        range=Range[from [line=8, lineOffset=36] to [line=8, lineOffset=49]]
        image=LITERAL
      
      Token
        range=Range[from [line=8, lineOffset=49] to [line=8, lineOffset=50]]
        image=]
      
      Token
        range=Range[from [line=8, lineOffset=50] to [line=8, lineOffset=51]]
        image=,
      
      Token
        range=Range[from [line=8, lineOffset=52] to [line=8, lineOffset=59]]
        image=visible
      
      Token
        range=Range[from [line=8, lineOffset=59] to [line=8, lineOffset=60]]
        image=:
      
      Token
        range=Range[from [line=8, lineOffset=61] to [line=8, lineOffset=66]]
        image=false
      
      Token
        range=Range[from [line=8, lineOffset=66] to [line=8, lineOffset=67]]
        image=}
      
      Token
        range=Range[from [line=8, lineOffset=67] to [line=8, lineOffset=68]]
        image=,
      
      Token
        range=Range[from [line=9, lineOffset=8] to [line=9, lineOffset=9]]
        image={
      
      Token
        range=Range[from [line=9, lineOffset=9] to [line=9, lineOffset=14]]
        image=label
      
      Token
        range=Range[from [line=9, lineOffset=14] to [line=9, lineOffset=15]]
        image=:
      
      Token
        range=Range[from [line=9, lineOffset=16] to [line=9, lineOffset=21]]
        image=LITERAL
      
      Token
        range=Range[from [line=9, lineOffset=21] to [line=9, lineOffset=22]]
        image=,
      
      Token
        range=Range[from [line=9, lineOffset=23] to [line=9, lineOffset=33]]
        image=routerLink
      
      Token
        range=Range[from [line=9, lineOffset=33] to [line=9, lineOffset=34]]
        image=:
      
      Token
        range=Range[from [line=9, lineOffset=35] to [line=9, lineOffset=36]]
        image=[
      
      Token
        range=Range[from [line=9, lineOffset=36] to [line=9, lineOffset=49]]
        image=LITERAL
      
      Token
        range=Range[from [line=9, lineOffset=49] to [line=9, lineOffset=50]]
        image=]
      
      Token
        range=Range[from [line=9, lineOffset=50] to [line=9, lineOffset=51]]
        image=,
      
      Token
        range=Range[from [line=9, lineOffset=52] to [line=9, lineOffset=59]]
        image=visible
      
      Token
        range=Range[from [line=9, lineOffset=59] to [line=9, lineOffset=60]]
        image=:
      
      Token
        range=Range[from [line=9, lineOffset=61] to [line=9, lineOffset=66]]
        image=false
      
      Token
        range=Range[from [line=9, lineOffset=66] to [line=9, lineOffset=67]]
        image=}
      
      Token
        range=Range[from [line=9, lineOffset=67] to [line=9, lineOffset=68]]
        image=,
      
      Token
        range=Range[from [line=10, lineOffset=4] to [line=10, lineOffset=5]]
        image=]
      
      Token
        range=Range[from [line=11, lineOffset=0] to [line=11, lineOffset=1]]
        image=}
      
      Token
        range=Range[from [line=11, lineOffset=1] to [line=11, lineOffset=2]]
        image=,
      
      Token
        range=Range[from [line=12, lineOffset=0] to [line=12, lineOffset=1]]
        image={
      
      Token
        range=Range[from [line=13, lineOffset=4] to [line=13, lineOffset=9]]
        image=label
      
      Token
        range=Range[from [line=13, lineOffset=9] to [line=13, lineOffset=10]]
        image=:
      
      Token
        range=Range[from [line=13, lineOffset=11] to [line=13, lineOffset=20]]
        image=LITERAL
      
      Token
        range=Range[from [line=13, lineOffset=20] to [line=13, lineOffset=21]]
        image=,
      
      Token
        range=Range[from [line=13, lineOffset=22] to [line=13, lineOffset=26]]
        image=icon
      
      Token
        range=Range[from [line=13, lineOffset=26] to [line=13, lineOffset=27]]
        image=:
      
      Token
        range=Range[from [line=13, lineOffset=28] to [line=13, lineOffset=43]]
        image=LITERAL
      
      Token
        range=Range[from [line=13, lineOffset=43] to [line=13, lineOffset=44]]
        image=,
      
      Token
        range=Range[from [line=13, lineOffset=45] to [line=13, lineOffset=52]]
        image=visible
      
      Token
        range=Range[from [line=13, lineOffset=52] to [line=13, lineOffset=53]]
        image=:
      
      Token
        range=Range[from [line=13, lineOffset=54] to [line=13, lineOffset=59]]
        image=false
      
      Token
        range=Range[from [line=13, lineOffset=59] to [line=13, lineOffset=60]]
        image=,
      
      Token
        range=Range[from [line=14, lineOffset=4] to [line=14, lineOffset=9]]
        image=items
      
      Token
        range=Range[from [line=14, lineOffset=9] to [line=14, lineOffset=10]]
        image=:
      
      Token
        range=Range[from [line=14, lineOffset=11] to [line=14, lineOffset=12]]
        image=[
      
      Token
        range=Range[from [line=15, lineOffset=8] to [line=15, lineOffset=9]]
        image={
      
      Token
        range=Range[from [line=15, lineOffset=9] to [line=15, lineOffset=14]]
        image=label
      
      Token
        range=Range[from [line=15, lineOffset=14] to [line=15, lineOffset=15]]
        image=:
      
      Token
        range=Range[from [line=15, lineOffset=16] to [line=15, lineOffset=40]]
        image=LITERAL
      
      Token
        range=Range[from [line=15, lineOffset=40] to [line=15, lineOffset=41]]
        image=,
      
      Token
        range=Range[from [line=15, lineOffset=42] to [line=15, lineOffset=52]]
        image=routerLink
      
      Token
        range=Range[from [line=15, lineOffset=52] to [line=15, lineOffset=53]]
        image=:
      
      Token
        range=Range[from [line=15, lineOffset=54] to [line=15, lineOffset=55]]
        image=[
      
      Token
        range=Range[from [line=15, lineOffset=55] to [line=15, lineOffset=69]]
        image=LITERAL
      
      Token
        range=Range[from [line=15, lineOffset=69] to [line=15, lineOffset=70]]
        image=]
      
      Token
        range=Range[from [line=15, lineOffset=70] to [line=15, lineOffset=71]]
        image=,
      
      Token
        range=Range[from [line=15, lineOffset=72] to [line=15, lineOffset=79]]
        image=visible
      
      Token
        range=Range[from [line=15, lineOffset=79] to [line=15, lineOffset=80]]
        image=:
      
      Token
        range=Range[from [line=15, lineOffset=81] to [line=15, lineOffset=86]]
        image=false
      
      Token
        range=Range[from [line=15, lineOffset=86] to [line=15, lineOffset=87]]
        image=}
      
      Token
        range=Range[from [line=15, lineOffset=87] to [line=15, lineOffset=88]]
        image=,
      
      Token
        range=Range[from [line=16, lineOffset=8] to [line=16, lineOffset=9]]
        image={
      
      Token
        range=Range[from [line=16, lineOffset=9] to [line=16, lineOffset=14]]
        image=label
      
      Token
        range=Range[from [line=16, lineOffset=14] to [line=16, lineOffset=15]]
        image=:
      
      Token
        range=Range[from [line=16, lineOffset=16] to [line=16, lineOffset=32]]
        image=LITERAL
      
      Token
        range=Range[from [line=16, lineOffset=32] to [line=16, lineOffset=33]]
        image=,
      
      Token
        range=Range[from [line=16, lineOffset=34] to [line=16, lineOffset=44]]
        image=routerLink
      
      Token
        range=Range[from [line=16, lineOffset=44] to [line=16, lineOffset=45]]
        image=:
      
      Token
        range=Range[from [line=16, lineOffset=46] to [line=16, lineOffset=47]]
        image=[
      
      Token
        range=Range[from [line=16, lineOffset=47] to [line=16, lineOffset=61]]
        image=LITERAL
      
      Token
        range=Range[from [line=16, lineOffset=61] to [line=16, lineOffset=62]]
        image=]
      
      Token
        range=Range[from [line=16, lineOffset=62] to [line=16, lineOffset=63]]
        image=,
      
      Token
        range=Range[from [line=16, lineOffset=64] to [line=16, lineOffset=71]]
        image=visible
      
      Token
        range=Range[from [line=16, lineOffset=71] to [line=16, lineOffset=72]]
        image=:
      
      Token
        range=Range[from [line=16, lineOffset=73] to [line=16, lineOffset=78]]
        image=false
      
      Token
        range=Range[from [line=16, lineOffset=78] to [line=16, lineOffset=79]]
        image=}
      
      Token
        range=Range[from [line=16, lineOffset=79] to [line=16, lineOffset=80]]
        image=,
      
      Token
        range=Range[from [line=17, lineOffset=4] to [line=17, lineOffset=5]]
        image=]
      
      Token
        range=Range[from [line=18, lineOffset=0] to [line=18, lineOffset=1]]
        image=}
      
      Token
        range=Range[from [line=18, lineOffset=1] to [line=18, lineOffset=2]]
        image=,
      
      Token
        range=Range[from [line=19, lineOffset=0] to [line=19, lineOffset=1]]
        image={
      
      Token
        range=Range[from [line=20, lineOffset=4] to [line=20, lineOffset=9]]
        image=label
      
      Token
        range=Range[from [line=20, lineOffset=9] to [line=20, lineOffset=10]]
        image=:
      
      Token
        range=Range[from [line=20, lineOffset=11] to [line=20, lineOffset=22]]
        image=LITERAL
      
      Token
        range=Range[from [line=20, lineOffset=22] to [line=20, lineOffset=23]]
        image=,
      
      Token
        range=Range[from [line=20, lineOffset=24] to [line=20, lineOffset=28]]
        image=icon
      
      Token
        range=Range[from [line=20, lineOffset=28] to [line=20, lineOffset=29]]
        image=:
      
      Token
        range=Range[from [line=20, lineOffset=30] to [line=20, lineOffset=39]]
        image=LITERAL
      
      Token
        range=Range[from [line=20, lineOffset=39] to [line=20, lineOffset=40]]
        image=,
      
      Token
        range=Range[from [line=20, lineOffset=41] to [line=20, lineOffset=48]]
        image=visible
      
      Token
        range=Range[from [line=20, lineOffset=48] to [line=20, lineOffset=49]]
        image=:
      
      Token
        range=Range[from [line=20, lineOffset=50] to [line=20, lineOffset=55]]
        image=false
      
      Token
        range=Range[from [line=20, lineOffset=55] to [line=20, lineOffset=56]]
        image=,
      
      Token
        range=Range[from [line=21, lineOffset=4] to [line=21, lineOffset=9]]
        image=items
      
      Token
        range=Range[from [line=21, lineOffset=9] to [line=21, lineOffset=10]]
        image=:
      
      Token
        range=Range[from [line=21, lineOffset=11] to [line=21, lineOffset=12]]
        image=[
      
      Token
        range=Range[from [line=22, lineOffset=8] to [line=22, lineOffset=9]]
        image={
      
      Token
        range=Range[from [line=22, lineOffset=9] to [line=22, lineOffset=14]]
        image=label
      
      Token
        range=Range[from [line=22, lineOffset=14] to [line=22, lineOffset=15]]
        image=:
      
      Token
        range=Range[from [line=22, lineOffset=16] to [line=22, lineOffset=25]]
        image=LITERAL
      
      Token
        range=Range[from [line=22, lineOffset=25] to [line=22, lineOffset=26]]
        image=,
      
      Token
        range=Range[from [line=22, lineOffset=27] to [line=22, lineOffset=37]]
        image=routerLink
      
      Token
        range=Range[from [line=22, lineOffset=37] to [line=22, lineOffset=38]]
        image=:
      
      Token
        range=Range[from [line=22, lineOffset=39] to [line=22, lineOffset=40]]
        image=[
      
      Token
        range=Range[from [line=22, lineOffset=40] to [line=22, lineOffset=59]]
        image=LITERAL
      
      Token
        range=Range[from [line=22, lineOffset=59] to [line=22, lineOffset=60]]
        image=]
      
      Token
        range=Range[from [line=22, lineOffset=60] to [line=22, lineOffset=61]]
        image=,
      
      Token
        range=Range[from [line=22, lineOffset=62] to [line=22, lineOffset=69]]
        image=visible
      
      Token
        range=Range[from [line=22, lineOffset=69] to [line=22, lineOffset=70]]
        image=:
      
      Token
        range=Range[from [line=22, lineOffset=71] to [line=22, lineOffset=76]]
        image=false
      
      Token
        range=Range[from [line=22, lineOffset=76] to [line=22, lineOffset=77]]
        image=}
      
      Token
        range=Range[from [line=22, lineOffset=77] to [line=22, lineOffset=78]]
        image=,
      
      Token
        range=Range[from [line=23, lineOffset=8] to [line=23, lineOffset=9]]
        image={
      
      Token
        range=Range[from [line=23, lineOffset=9] to [line=23, lineOffset=14]]
        image=label
      
      Token
        range=Range[from [line=23, lineOffset=14] to [line=23, lineOffset=15]]
        image=:
      
      Token
        range=Range[from [line=23, lineOffset=16] to [line=23, lineOffset=25]]
        image=LITERAL
      
      Token
        range=Range[from [line=23, lineOffset=25] to [line=23, lineOffset=26]]
        image=,
      
      Token
        range=Range[from [line=23, lineOffset=27] to [line=23, lineOffset=37]]
        image=routerLink
      
      Token
        range=Range[from [line=23, lineOffset=37] to [line=23, lineOffset=38]]
        image=:
      
      Token
        range=Range[from [line=23, lineOffset=39] to [line=23, lineOffset=40]]
        image=[
      
      Token
        range=Range[from [line=23, lineOffset=40] to [line=23, lineOffset=59]]
        image=LITERAL
      
      Token
        range=Range[from [line=23, lineOffset=59] to [line=23, lineOffset=60]]
        image=]
      
      Token
        range=Range[from [line=23, lineOffset=60] to [line=23, lineOffset=61]]
        image=,
      
      Token
        range=Range[from [line=23, lineOffset=62] to [line=23, lineOffset=69]]
        image=visible
      
      Token
        range=Range[from [line=23, lineOffset=69] to [line=23, lineOffset=70]]
        image=:
      
      Token
        range=Range[from [line=23, lineOffset=71] to [line=23, lineOffset=76]]
        image=false
      
      Token
        range=Range[from [line=23, lineOffset=76] to [line=23, lineOffset=77]]
        image=}
      
      Token
        range=Range[from [line=23, lineOffset=77] to [line=23, lineOffset=78]]
        image=,
      
      Token
        range=Range[from [line=24, lineOffset=4] to [line=24, lineOffset=5]]
        image=]
      
      Token
        range=Range[from [line=25, lineOffset=0] to [line=25, lineOffset=1]]
        image=}
      
      Token
        range=Range[from [line=25, lineOffset=1] to [line=25, lineOffset=2]]
        image=,
      
      Token
        range=Range[from [line=26, lineOffset=0] to [line=26, lineOffset=1]]
        image={
      
      Token
        range=Range[from [line=27, lineOffset=4] to [line=27, lineOffset=9]]
        image=label
      
      Token
        range=Range[from [line=27, lineOffset=9] to [line=27, lineOffset=10]]
        image=:
      
      Token
        range=Range[from [line=27, lineOffset=11] to [line=27, lineOffset=25]]
        image=LITERAL
      
      Token
        range=Range[from [line=27, lineOffset=25] to [line=27, lineOffset=26]]
        image=,
      
      Token
        range=Range[from [line=27, lineOffset=27] to [line=27, lineOffset=31]]
        image=icon
      
      Token
        range=Range[from [line=27, lineOffset=31] to [line=27, lineOffset=32]]
        image=:
      
      Token
        range=Range[from [line=27, lineOffset=33] to [line=27, lineOffset=45]]
        image=LITERAL
      
      Token
        range=Range[from [line=27, lineOffset=45] to [line=27, lineOffset=46]]
        image=,
      
      Token
        range=Range[from [line=27, lineOffset=47] to [line=27, lineOffset=54]]
        image=visible
      
      Token
        range=Range[from [line=27, lineOffset=54] to [line=27, lineOffset=55]]
        image=:
      
      Token
        range=Range[from [line=27, lineOffset=56] to [line=27, lineOffset=61]]
        image=false
      
      Token
        range=Range[from [line=27, lineOffset=61] to [line=27, lineOffset=62]]
        image=,
      
      Token
        range=Range[from [line=28, lineOffset=4] to [line=28, lineOffset=9]]
        image=items
      
      Token
        range=Range[from [line=28, lineOffset=9] to [line=28, lineOffset=10]]
        image=:
      
      Token
        range=Range[from [line=28, lineOffset=11] to [line=28, lineOffset=12]]
        image=[
      
      Token
        range=Range[from [line=28, lineOffset=12] to [line=28, lineOffset=13]]
        image=]
      
      Token
        range=Range[from [line=29, lineOffset=0] to [line=29, lineOffset=1]]
        image=}
      
      Token
        range=Range[from [line=29, lineOffset=1] to [line=29, lineOffset=2]]
        image=]
      
      Token
        range=Range[from [line=29, lineOffset=2] to [line=29, lineOffset=3]]
        image=;
      

      and the related TokenLines too:

      org.sonar.duplications.internal.pmd.TokensLine@7612116b[
        value=varx=[{
        startLine=1
        hashCode=237197484
        startUnit=1
        endUnit=5
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@1c05097c[
        value=},
        startLine=2
        hashCode=3919
        startUnit=6
        endUnit=7
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@562f6681[
        value={
        startLine=3
        hashCode=123
        startUnit=8
        endUnit=8
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@6f6f65a4[
        value=label:LITERAL,icon:LITERAL,visible:false,
        startLine=4
        hashCode=1925479724
        startUnit=9
        endUnit=20
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@990b86b[
        value=items:[
        startLine=5
        hashCode=2116222753
        startUnit=21
        endUnit=23
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@3dea1ecc[
        value={label:LITERAL,routerLink:[LITERAL],visible:false},
        startLine=6
        hashCode=-1501125714
        startUnit=24
        endUnit=39
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@105c6c9e[
        value={label:LITERAL,routerLink:[LITERAL],visible:false},
        startLine=7
        hashCode=-1501125714
        startUnit=40
        endUnit=55
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@40a7974[
        value={label:LITERAL,routerLink:[LITERAL],visible:false},
        startLine=8
        hashCode=-1501125714
        startUnit=56
        endUnit=71
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@8d5da7e[
        value={label:LITERAL,routerLink:[LITERAL],visible:false},
        startLine=9
        hashCode=-1501125714
        startUnit=72
        endUnit=87
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@65a4b9d6[
        value=]
        startLine=10
        hashCode=93
        startUnit=88
        endUnit=88
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@16ef1160[
        value=},
        startLine=11
        hashCode=3919
        startUnit=89
        endUnit=90
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@41f90b10[
        value={
        startLine=12
        hashCode=123
        startUnit=91
        endUnit=91
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@67593f7b[
        value=label:LITERAL,icon:LITERAL,visible:false,
        startLine=13
        hashCode=1925479724
        startUnit=92
        endUnit=103
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@2773504f[
        value=items:[
        startLine=14
        hashCode=2116222753
        startUnit=104
        endUnit=106
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@497921d0[
        value={label:LITERAL,routerLink:[LITERAL],visible:false},
        startLine=15
        hashCode=-1501125714
        startUnit=107
        endUnit=122
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@40d10264[
        value={label:LITERAL,routerLink:[LITERAL],visible:false},
        startLine=16
        hashCode=-1501125714
        startUnit=123
        endUnit=138
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@6edd4fe2[
        value=]
        startLine=17
        hashCode=93
        startUnit=139
        endUnit=139
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@53918b5e[
        value=},
        startLine=18
        hashCode=3919
        startUnit=140
        endUnit=141
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@5366575d[
        value={
        startLine=19
        hashCode=123
        startUnit=142
        endUnit=142
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@1b6cad77[
        value=label:LITERAL,icon:LITERAL,visible:false,
        startLine=20
        hashCode=1925479724
        startUnit=143
        endUnit=154
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@1fca53a7[
        value=items:[
        startLine=21
        hashCode=2116222753
        startUnit=155
        endUnit=157
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@40dee07b[
        value={label:LITERAL,routerLink:[LITERAL],visible:false},
        startLine=22
        hashCode=-1501125714
        startUnit=158
        endUnit=173
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@21e39b82[
        value={label:LITERAL,routerLink:[LITERAL],visible:false},
        startLine=23
        hashCode=-1501125714
        startUnit=174
        endUnit=189
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@5f9a8ddc[
        value=]
        startLine=24
        hashCode=93
        startUnit=190
        endUnit=190
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@1280bae3[
        value=},
        startLine=25
        hashCode=3919
        startUnit=191
        endUnit=192
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@256a5df0[
        value={
        startLine=26
        hashCode=123
        startUnit=193
        endUnit=193
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@1868ed54[
        value=label:LITERAL,icon:LITERAL,visible:false,
        startLine=27
        hashCode=1925479724
        startUnit=194
        endUnit=205
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@131777e8[
        value=items:[]
        startLine=28
        hashCode=1178395996
        startUnit=206
        endUnit=209
      ]
      
      org.sonar.duplications.internal.pmd.TokensLine@73a5d86c[
        value=}];
        startLine=29
        hashCode=123067
        startUnit=210
        endUnit=212
      ]
      

      The issue can be reproduced with the same Typescript file.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            simon.brandhof Simon Brandhof (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: