autowp/autowp-frontend

View on GitHub
src/app/catalogue/catalogue-routing.module.ts

Summary

Maintainability
D
2 days
Test Coverage

Showing 5 of 5 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

{
children: [
{
loadComponent: () => import('./mixed/gallery/gallery.component').then((m) => m.CatalogueMixedGalleryComponent),
path: 'gallery/:identity',
Severity: Major
Found in src/app/catalogue/catalogue-routing.module.ts and 1 other location - About 7 hrs to fix
src/app/catalogue/catalogue-routing.module.ts on lines 67..94

Similar blocks of code found in 2 locations. Consider refactoring.
Open

{
children: [
{
loadComponent: () => import('./mixed/gallery/gallery.component').then((m) => m.CatalogueMixedGalleryComponent),
path: 'gallery/:identity',
Severity: Major
Found in src/app/catalogue/catalogue-routing.module.ts and 1 other location - About 7 hrs to fix
src/app/catalogue/catalogue-routing.module.ts on lines 11..38

Similar blocks of code found in 5 locations. Consider refactoring.
Open

{
children: [
{
loadComponent: () =>
import('./vehicles/pictures/picture/picture.component').then(
Severity: Major
Found in src/app/catalogue/catalogue-routing.module.ts and 4 other locations - About 2 hrs to fix
src/app/catalogue/catalogue-routing.module.ts on lines 103..116
src/app/catalogue/catalogue-routing.module.ts on lines 177..194
src/app/twins/twins-routing.module.ts on lines 6..21
src/app/twins/twins-routing.module.ts on lines 22..37

Similar blocks of code found in 5 locations. Consider refactoring.
Open

{
children: [
{
loadComponent: () => import('./cars/cars.component').then((m) => m.CatalogueCarsComponent),
path: ':vehicle_type',
Severity: Major
Found in src/app/catalogue/catalogue-routing.module.ts and 4 other locations - About 2 hrs to fix
src/app/catalogue/catalogue-routing.module.ts on lines 147..164
src/app/catalogue/catalogue-routing.module.ts on lines 177..194
src/app/twins/twins-routing.module.ts on lines 6..21
src/app/twins/twins-routing.module.ts on lines 22..37

Similar blocks of code found in 5 locations. Consider refactoring.
Open

{
children: [
{
loadComponent: () =>
import('./vehicles/pictures/picture/picture.component').then(
Severity: Major
Found in src/app/catalogue/catalogue-routing.module.ts and 4 other locations - About 2 hrs to fix
src/app/catalogue/catalogue-routing.module.ts on lines 103..116
src/app/catalogue/catalogue-routing.module.ts on lines 147..164
src/app/twins/twins-routing.module.ts on lines 6..21
src/app/twins/twins-routing.module.ts on lines 22..37

There are no issues that match your filters.

Category
Status