autowp/autowp-frontend

View on GitHub
src/grpc/google/rpc/error-details.pb.ts

Summary

Maintainability
F
1 mo
Test Coverage

Showing 17 of 17 total issues

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 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

    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

    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 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 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 2 locations. Consider refactoring.
    Open

    static deserializeBinaryFromReader(
    _instance: Violation,
    _reader: BinaryReader
    ) {
    while (_reader.nextField()) {
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 6 hrs to fix
    src/grpc/google/type/date.pb.ts on lines 45..65

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

    static serializeBinaryToWriter(
    _instance: Violation,
    _writer: BinaryWriter
    ) {
    if (_instance.type) {
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 3 hrs to fix
    src/grpc/google/type/date.pb.ts on lines 72..82

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

    constructor(_value?: RecursivePartial<Violation.AsObject>) {
    _value = _value || {};
    this.type = _value.type;
    this.subject = _value.subject;
    this.description = _value.description;
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 3 hrs to fix
    src/grpc/google/type/date.pb.ts on lines 92..98

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

    toProtobufJSON(
    // @ts-ignore
    options?: ToProtobufJSONOptions
    ): ErrorInfo.AsProtobufJSON {
    return {
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 2 hrs to fix
    src/grpc/google/rpc/error-details.pb.ts on lines 157..168

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

    toObject(): ErrorInfo.AsObject {
    return {
    reason: this.reason,
    domain: this.domain,
    metadata: this.metadata
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 2 hrs to fix
    src/grpc/google/rpc/error-details.pb.ts on lines 182..196

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

    toProtobufJSON(
    // @ts-ignore
    options?: ToProtobufJSONOptions
    ): Violation.AsProtobufJSON {
    return {
    Severity: Major
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 1 hr to fix
    src/grpc/google/type/date.pb.ts on lines 151..160

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

    toObject(): Violation.AsObject {
    return {
    type: this.type,
    subject: this.subject,
    description: this.description
    Severity: Minor
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 55 mins to fix
    src/grpc/google/type/date.pb.ts on lines 131..137

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

    export interface AsObject {
    reason: string;
    domain: string;
    metadata: { [prop: string]: string };
    }
    Severity: Minor
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 35 mins to fix
    src/grpc/google/rpc/error-details.pb.ts on lines 211..215

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

    export interface AsProtobufJSON {
    reason: string;
    domain: string;
    metadata: { [prop: string]: string };
    }
    Severity: Minor
    Found in src/grpc/google/rpc/error-details.pb.ts and 1 other location - About 35 mins to fix
    src/grpc/google/rpc/error-details.pb.ts on lines 202..206
    Category
    Status