maciejtreder/angular-universal-pwa

View on GitHub

Showing 3 of 11 total issues

Function exports has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function (config) {
config.set({
basePath: '',
frameworks: ['jasmine', '@angular-devkit/build-angular'],
plugins: [
Severity: Minor
Found in application/src/karma.conf.js - About 1 hr to fix

    Function ngOnInit has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    public ngOnInit(): void {
    this.router.events.pipe(filter((event) => event instanceof NavigationEnd)).subscribe((event) => {
    const snapshot: ActivatedRouteSnapshot = this.router.routerState.snapshot.root.firstChild;
     
    const title: string = snapshot.data['title'];
    Severity: Minor
    Found in application/src/app/app.component.ts - About 1 hr to fix

      Function fireBug has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
      Open

      export const fireBug = () => new Promise((resolve) => {
      if (environment.firebug) {
      const fb = document.createElement('script');
      fb.type = 'text/javascript'; fb.src = '../firebug-lite/build/firebug-lite.js';
      fb.innerHTML = `
      Severity: Minor
      Found in application/src/bootstrapScripts/firebug.ts - About 35 mins to fix
      Severity
      Category
      Status
      Source
      Language