Global Metrics

path: .metrics.loc.blank
old: 27.0
new: 7.0

path: .metrics.loc.lloc
old: 55.0
new: 0.0

path: .metrics.loc.ploc
old: 92.0
new: 18.0

path: .metrics.loc.cloc
old: 14.0
new: 6.0

path: .metrics.loc.sloc
old: 133.0
new: 31.0

path: .metrics.mi.mi_sei
old: 16.098545431311273
new: 83.27716394826444

path: .metrics.mi.mi_visual_studio
old: 26.20924807659955
new: 51.59055462129689

path: .metrics.mi.mi_original
old: 44.81781421098523
new: 88.21984840241768

path: .metrics.cyclomatic.average
old: 3.0
new: 1.0

path: .metrics.cyclomatic.sum
old: 30.0
new: 2.0

path: .metrics.nexits.sum
old: 20.0
new: 0.0

path: .metrics.nexits.average
old: 2.5
new: null

path: .metrics.cognitive.average
old: 2.5
new: null

path: .metrics.cognitive.sum
old: 20.0
new: 0.0

path: .metrics.halstead.estimated_program_length
old: 334.7944727340507
new: 77.30296890880646

path: .metrics.halstead.N2
old: 148.0
new: 18.0

path: .metrics.halstead.level
old: 0.032716927453769556
new: 0.1944444444444444

path: .metrics.halstead.length
old: 368.0
new: 38.0

path: .metrics.halstead.n1
old: 19.0
new: 8.0

path: .metrics.halstead.effort
old: 67739.59316094406
new: 871.500350613689

path: .metrics.halstead.volume
old: 2216.2313551944712
new: 169.4584015082173

path: .metrics.halstead.difficulty
old: 30.565217391304348
new: 5.142857142857143

path: .metrics.halstead.vocabulary
old: 65.0
new: 22.0

path: .metrics.halstead.bugs
old: 0.553911609829475
new: 0.03041285019392417

path: .metrics.halstead.n2
old: 46.0
new: 14.0

path: .metrics.halstead.purity_ratio
old: 0.9097675889512248
new: 2.034288655494907

path: .metrics.halstead.time
old: 3763.310731163559
new: 48.41668614520494

path: .metrics.halstead.N1
old: 220.0
new: 20.0

path: .metrics.nargs.average
old: 0.875
new: null

path: .metrics.nargs.sum
old: 7.0
new: 0.0

path: .metrics.nom.total
old: 8.0
new: 0.0

path: .metrics.nom.functions
old: 8.0
new: 0.0

Spaces Data

Minimal test - lines (15, 29)

path: .spaces[0].metrics.cyclomatic.average
old: 3.2222222222222223
new: 1.0

path: .spaces[0].metrics.cyclomatic.sum
old: 29.0
new: 1.0

path: .spaces[0].metrics.nargs.sum
old: 7.0
new: 0.0

path: .spaces[0].metrics.nargs.average
old: 0.875
new: null

path: .spaces[0].metrics.cognitive.sum
old: 20.0
new: 0.0

path: .spaces[0].metrics.cognitive.average
old: 2.5
new: null

path: .spaces[0].metrics.halstead.volume
old: 2202.0
new: 133.437600046154

path: .spaces[0].metrics.halstead.level
old: 0.032223415682062294
new: 0.1923076923076923

path: .spaces[0].metrics.halstead.N1
old: 220.0
new: 19.0

path: .spaces[0].metrics.halstead.N2
old: 147.0
new: 13.0

path: .spaces[0].metrics.halstead.length
old: 367.0
new: 32.0

path: .spaces[0].metrics.halstead.bugs
old: 0.5571548378123146
new: 0.026125610989747187

path: .spaces[0].metrics.halstead.time
old: 3796.411111111111
new: 38.548640013333376

path: .spaces[0].metrics.halstead.estimated_program_length
old: 327.8440120902635
new: 57.219280948873624

path: .spaces[0].metrics.halstead.n1
old: 19.0
new: 8.0

path: .spaces[0].metrics.halstead.difficulty
old: 31.033333333333335
new: 5.2

path: .spaces[0].metrics.halstead.n2
old: 45.0
new: 10.0

path: .spaces[0].metrics.halstead.purity_ratio
old: 0.8933079348508542
new: 1.7881025296523008

path: .spaces[0].metrics.halstead.effort
old: 68335.40000000001
new: 693.8755202400008

path: .spaces[0].metrics.halstead.vocabulary
old: 64.0
new: 18.0

path: .spaces[0].metrics.mi.mi_original
old: 46.7476029170612
new: 101.45269018559225

path: .spaces[0].metrics.mi.mi_visual_studio
old: 27.33777948366152
new: 59.32905858806565

path: .spaces[0].metrics.mi.mi_sei
old: 11.670629279178094
new: 70.76626088299008

path: .spaces[0].metrics.nexits.average
old: 2.5
new: null

path: .spaces[0].metrics.nexits.sum
old: 20.0
new: 0.0

path: .spaces[0].metrics.nom.functions
old: 8.0
new: 0.0

path: .spaces[0].metrics.nom.total
old: 8.0
new: 0.0

path: .spaces[0].metrics.loc.sloc
old: 120.0
new: 15.0

path: .spaces[0].metrics.loc.ploc
old: 89.0
new: 12.0

path: .spaces[0].metrics.loc.lloc
old: 55.0
new: 0.0

path: .spaces[0].metrics.loc.cloc
old: 6.0
new: 0.0

path: .spaces[0].metrics.loc.blank
old: 25.0
new: 3.0

Code

class nsConsoleMessage final : public nsIConsoleMessage {
 public:
  nsConsoleMessage();
  explicit nsConsoleMessage(const char16_t* aMessage);

  NS_DECL_THREADSAFE_ISUPPORTS
  NS_DECL_NSICONSOLEMESSAGE

 private:
  ~nsConsoleMessage() = default;

  int64_t mTimeStamp;
  nsString mMessage;
  bool mIsForwardedFromContentProcess;
};