app-outlet/app-outlet

View on GitHub

Showing 4 of 41 total issues

Function setupMenuItems has 69 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    async setupMenuItems(): Promise<void> {
        this.items = [
            {
                link: '/home',
                title: await this.getTranslation('PAGES.HOME.TITLE'),
Severity: Major
Found in src/app/ui/components/main-menu/main-menu.component.ts - About 2 hrs to fix

    Function createWindow has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function createWindow() {
        const win = new BrowserWindow({
            width: 1200,
            height: 730,
            minHeight: 680,
    Severity: Minor
    Found in main.js - About 1 hr to fix

      Function updateButtonAppearance has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          private updateButtonAppearance(): void {
              switch (this.applicationStatus) {
                  case ApplicationStatus.NOT_INSTALLED:
                      this.buttonStatus = 'success';
                      this.buttonText = this.getInstallButtonText();
      Severity: Minor
      Found in src/app/ui/components/install-button/install-button.component.ts - About 1 hr to fix

        Function installApplication has 28 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            installApplication(application: Application): Promise<void> {
                switch (application.packageType) {
                    case PackageType.SNAP:
                        this.addProcess(
                            new InstallSnap(this.childProcess, application, (process) =>
        Severity: Minor
        Found in src/app/service/process/process.service.ts - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language