autowp/autowp-frontend

View on GitHub

Showing 176 of 176 total issues

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

export class CommentsClient {
private client: GrpcClient<any>;
 
/**
* Raw RPC implementation for each service client method.
Severity: Major
Found in src/grpc/spec.pbsc.ts and 2 other locations - About 2 wks to fix
src/grpc/spec.pbsc.ts on lines 57..482
src/grpc/spec.pbsc.ts on lines 1467..1892

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

export class AutowpClient {
private client: GrpcClient<any>;
 
/**
* Raw RPC implementation for each service client method.
Severity: Major
Found in src/grpc/spec.pbsc.ts and 2 other locations - About 2 wks to fix
src/grpc/spec.pbsc.ts on lines 1467..1892
src/grpc/spec.pbsc.ts on lines 3890..4315

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

export class UsersClient {
private client: GrpcClient<any>;
 
/**
* Raw RPC implementation for each service client method.
Severity: Major
Found in src/grpc/spec.pbsc.ts and 2 other locations - About 2 wks to fix
src/grpc/spec.pbsc.ts on lines 57..482
src/grpc/spec.pbsc.ts on lines 3890..4315

File spec.pbsc.ts has 4165 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* tslint:disable */
/* eslint-disable */
// @ts-nocheck
//
// THIS IS A GENERATED FILE
Severity: Major
Found in src/grpc/spec.pbsc.ts - About 1 wk to fix

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

    export class MessagingClient {
    private client: GrpcClient<any>;
     
    /**
    * Raw RPC implementation for each service client method.
    Severity: Major
    Found in src/grpc/spec.pbsc.ts and 1 other location - About 1 wk to fix
    src/grpc/spec.pbsc.ts on lines 1051..1291

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

    export class TrafficClient {
    private client: GrpcClient<any>;
     
    /**
    * Raw RPC implementation for each service client method.
    Severity: Major
    Found in src/grpc/spec.pbsc.ts and 1 other location - About 1 wk to fix
    src/grpc/spec.pbsc.ts on lines 5721..5961

    Function Jcrop has a Cognitive Complexity of 267 (exceeds 5 allowed). Consider refactoring.
    Open

    function Jcrop(obj, opt) {
     
    let $img;
    let xscale;
    let yscale;
    Severity: Minor
    Found in src/app/jcrop/jquery.Jcrop.js - About 5 days to fix

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

    export module QuotaFailure {
    /**
    * Standard JavaScript object representation for QuotaFailure
    */
    export interface AsObject {
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 2 other locations - About 4 days to fix
    src/grpc/google/rpc/error-details.pb.ts on lines 1437..1609
    src/grpc/google/rpc/error-details.pb.ts on lines 2082..2245

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

    export module BadRequest {
    /**
    * Standard JavaScript object representation for BadRequest
    */
    export interface AsObject {
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 2 other locations - About 4 days to fix
    src/grpc/google/rpc/error-details.pb.ts on lines 808..977
    src/grpc/google/rpc/error-details.pb.ts on lines 2082..2245

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

    export module Help {
    /**
    * Standard JavaScript object representation for Help
    */
    export interface AsObject {
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 2 other locations - About 4 days to fix
    src/grpc/google/rpc/error-details.pb.ts on lines 808..977
    src/grpc/google/rpc/error-details.pb.ts on lines 1437..1609

    Function Jcrop has 889 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function Jcrop(obj, opt) {
     
    let $img;
    let xscale;
    let yscale;
    Severity: Major
    Found in src/app/jcrop/jquery.Jcrop.js - About 4 days to fix

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

      export class BadRequest implements GrpcMessage {
      static id = 'google.rpc.BadRequest';
       
      /**
      * Deserialize binary data to message
      Severity: Major
      Found in src/grpc/google/rpc/error-details.pb.ts and 3 other locations - About 4 days to fix
      src/grpc/google/rpc/error-details.pb.ts on lines 678..807
      src/grpc/google/rpc/error-details.pb.ts on lines 982..1114
      src/grpc/google/rpc/error-details.pb.ts on lines 1962..2081

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

      export class Help implements GrpcMessage {
      static id = 'google.rpc.Help';
       
      /**
      * Deserialize binary data to message
      Severity: Major
      Found in src/grpc/google/rpc/error-details.pb.ts and 3 other locations - About 4 days to fix
      src/grpc/google/rpc/error-details.pb.ts on lines 678..807
      src/grpc/google/rpc/error-details.pb.ts on lines 982..1114
      src/grpc/google/rpc/error-details.pb.ts on lines 1308..1436

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

      export class QuotaFailure implements GrpcMessage {
      static id = 'google.rpc.QuotaFailure';
       
      /**
      * Deserialize binary data to message
      Severity: Major
      Found in src/grpc/google/rpc/error-details.pb.ts and 3 other locations - About 4 days to fix
      src/grpc/google/rpc/error-details.pb.ts on lines 982..1114
      src/grpc/google/rpc/error-details.pb.ts on lines 1308..1436
      src/grpc/google/rpc/error-details.pb.ts on lines 1962..2081

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

      export class PreconditionFailure implements GrpcMessage {
      static id = 'google.rpc.PreconditionFailure';
       
      /**
      * Deserialize binary data to message
      Severity: Major
      Found in src/grpc/google/rpc/error-details.pb.ts and 3 other locations - About 4 days to fix
      src/grpc/google/rpc/error-details.pb.ts on lines 678..807
      src/grpc/google/rpc/error-details.pb.ts on lines 1308..1436
      src/grpc/google/rpc/error-details.pb.ts on lines 1962..2081

      File error-details.pb.ts has 1481 lines of code (exceeds 250 allowed). Consider refactoring.
      Open

      /* tslint:disable */
      /* eslint-disable */
      // @ts-nocheck
      //
      // THIS IS A GENERATED FILE
      Severity: Major
      Found in src/grpc/google/rpc/error-details.pb.ts - About 3 days to fix

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

        const vehicleTypes: {
        [key: string]: string;
        } = {
        'car-type/2-floor-bus': $localize`2-floor bus`,
        'car-type/2door-hardtop': $localize`2-door hardtop`,
        Severity: Major
        Found in src/app/utils/translations.ts and 1 other location - About 3 days to fix
        src/app/utils/translations.ts on lines 258..301

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

        const vehicleTypesRp: {
        [key: string]: string;
        } = {
        'car-type-rp/2-floor-bus': $localize`:Vehicle type in context of "most fastest among Roadsters"@@car-type-rp/2-floor-bus:2-floor buses`,
        'car-type-rp/2door-hardtop': $localize`:Vehicle type in context of "most fastest among Roadsters"@@car-type-rp/2door-hardtop:2-door hardtops`,
        Severity: Major
        Found in src/app/utils/translations.ts and 1 other location - About 3 days to fix
        src/app/utils/translations.ts on lines 213..256

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

        export class MostsClient {
        private client: GrpcClient<any>;
         
        /**
        * Raw RPC implementation for each service client method.
        Severity: Major
        Found in src/grpc/spec.pbsc.ts and 3 other locations - About 3 days to fix
        src/grpc/spec.pbsc.ts on lines 954..1046
        src/grpc/spec.pbsc.ts on lines 5966..6058
        src/grpc/spec.pbsc.ts on lines 6063..6155

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

        export class ArticlesClient {
        private client: GrpcClient<any>;
         
        /**
        * Raw RPC implementation for each service client method.
        Severity: Major
        Found in src/grpc/spec.pbsc.ts and 3 other locations - About 3 days to fix
        src/grpc/spec.pbsc.ts on lines 3793..3885
        src/grpc/spec.pbsc.ts on lines 5966..6058
        src/grpc/spec.pbsc.ts on lines 6063..6155
        Severity
        Category
        Status
        Source
        Language