Global Metrics

path: .metrics.mi.mi_original
old: 13.728605563505212
new: 13.722931804077078

path: .metrics.mi.mi_sei
old: -17.608037275240136
new: -17.61622277983031

path: .metrics.mi.mi_visual_studio
old: 8.028424306143398
new: 8.02510631817373

path: .metrics.halstead.bugs
old: 1.6599751593636678
new: 1.6649996932529656

path: .metrics.halstead.time
old: 19523.683588786265
new: 19612.394197473455

path: .metrics.halstead.difficulty
old: 58.0
new: 58.2

path: .metrics.halstead.volume
old: 6059.074217209531
new: 6065.688927053646

path: .metrics.halstead.length
old: 916.0
new: 917.0

path: .metrics.halstead.effort
old: 351426.30459815275
new: 353023.0955545222

path: .metrics.halstead.N2
old: 290.0
new: 291.0

path: .metrics.halstead.level
old: 0.017241379310344827
new: 0.017182130584192438

path: .metrics.halstead.purity_ratio
old: 0.615344704152577
new: 0.6146736630357258

Spaces Data

Minimal test - lines (342, 359)

path: .spaces[25].metrics.halstead.effort
old: 2055.996916506695
new: 2234.1443766017355

path: .spaces[25].metrics.halstead.N2
old: 16.0
new: 17.0

path: .spaces[25].metrics.halstead.volume
old: 186.90881059151775
new: 191.1567381049613

path: .spaces[25].metrics.halstead.bugs
old: 0.05389647782000478
new: 0.056966504095674185

path: .spaces[25].metrics.halstead.length
old: 44.0
new: 45.0

path: .spaces[25].metrics.halstead.purity_ratio
old: 1.4103124501138695
new: 1.3789721734446727

path: .spaces[25].metrics.halstead.time
old: 114.22205091703862
new: 124.11913203342976

path: .spaces[25].metrics.halstead.level
old: 0.09090909090909093
new: 0.0855614973262032

path: .spaces[25].metrics.halstead.difficulty
old: 11.0
new: 11.6875

path: .spaces[25].metrics.mi.mi_original
old: 96.51674908116767
new: 96.39989023073696

path: .spaces[25].metrics.mi.mi_sei
old: 88.43456522927774
new: 88.26597354527739

path: .spaces[25].metrics.mi.mi_visual_studio
old: 56.44254332232027
new: 56.37420481329647

Code

  async simulateScreenOrientationChange(
    type,
    angle,
    isViewportRotated = false
  ) {
    // Don't dispatch the "orientationchange" event if orientation change is a result
    // of switching to a new device, location change, or opening RDM.
    if (!isViewportRotated) {
      this.setScreenOrientation(type, angle);
      return;
    }

    const { CustomEvent } = this.win;
    const orientationChangeEvent = new CustomEvent("orientationchange");

    this.setScreenOrientation(type, angle);
    this.win.dispatchEvent(orientationChangeEvent);
  },