WowMuchName/interceptors

View on GitHub

Showing 3 of 5 total issues

Function proxy has 117 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function proxy() {
    return (targetClass: any): any => {
        const data: ProxyData = Reflect.getMetadata(metaKey, targetClass);
        // If no overrides were set for this class,
        // return the unmodified constructor
Severity: Major
Found in lib/index.ts - About 4 hrs to fix

    Function get has 64 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

                    get < T > (target: T, p: PropertyKey, receiver: any): any {
                        const override = data.get(p.toString());
                        if (!override) {
                            return unproxied[p];
                        }
    Severity: Major
    Found in lib/index.ts - About 2 hrs to fix

      Function set has 36 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                      set(target: any, p: PropertyKey, value: any, receiver: any): boolean {
                          const override = data.get(p.toString());
                          if (!override) {
                             unproxied[p] = value;
                             return true;
      Severity: Minor
      Found in lib/index.ts - About 1 hr to fix
        Severity
        Category
        Status
        Source
        Language