ActivityWatch/aw-webui

View on GitHub
src/visualizations/summary.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function update has 55 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function update(container: HTMLElement, apps: Entry[]) {
  // No apps, sets status to "No data"
  if (apps.length <= 0) {
    set_status(container, 'No data');
    return container;
Severity: Major
Found in src/visualizations/summary.ts - About 2 hrs to fix

    Function updateSummedEvents has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

      container: HTMLElement,
      summedEvents: IEvent[],
      titleKeyFunc: (event: IEvent) => string,
      hoverKeyFunc: (event: IEvent) => string,
      colorKeyFunc: (event: IEvent) => string,
    Severity: Minor
    Found in src/visualizations/summary.ts - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status