arranbartish/angular-cli-seed

View on GitHub

Showing 3 of 105 total issues

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

module.exports = function (config) {
  config.set({
    basePath: '',
    frameworks: ['mocha', '@angular/cli'],
    plugins: [
Severity: Major
Found in karma.conf.js - About 2 hrs to fix

    Function initializeMenu has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      initializeMenu(): Observable<boolean> {
        this.housesStore.select(state => state.houses).subscribe((housingItems: House[]) => {
          const newMenuItems = housingItems
            .map(house => house.country) // Linq: .Select(house => house.country)
            .filter((value, index, array) => array.indexOf(value) === index) // Linq: .Distinct()
    Severity: Minor
    Found in src/app/housing/guards/house-lazy-menu.ts - About 1 hr to fix

      Function initializeMenu has 35 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        initializeMenu(): Observable<boolean> {
          this.carStore.select(state => state.cars).subscribe((carItems: Car[]) => {
            const newMenuItems = carItems
              .map(car => car.brand) // Linq: .Select(car => car.brand)
              .filter((value, index, array) => array.indexOf(value) === index) // Linq: .Distinct()
      Severity: Minor
      Found in src/app/car/guards/car-lazy-menu.ts - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language