autowp/autowp-frontend

View on GitHub

Showing 22 of 176 total issues

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

    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

    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

      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

        File jquery.Jcrop.js has 913 lines of code (exceeds 250 allowed). Consider refactoring.
        Open

        /**
        * jquery.Jcrop.js v0.9.12
        * jQuery Image Cropping Plugin - released under MIT License
        * Author: Kelly Hallman <khallman@gmail.com>
        * http://github.com/tapmodo/Jcrop
        Severity: Major
        Found in src/app/jcrop/jquery.Jcrop.js - About 2 days to fix

          File translations.ts has 908 lines of code (exceeds 250 allowed). Consider refactoring.
          Open

          const translations: {
          [key: string]: {'add-sub-item': string; name: string; 'name-plural': string; 'new-item': string};
          } = {
          1: {
          'add-sub-item': $localize`Add sub-vehicle`,
          Severity: Major
          Found in src/app/utils/translations.ts - About 2 days to fix

            Function Coords has 226 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            const Coords = (function() {
            let x1 = 0,
            y1 = 0,
            x2 = 0,
            y2 = 0;
            Severity: Major
            Found in src/app/jcrop/jquery.Jcrop.js - About 1 day to fix

              Function Selection has 177 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              const Selection = (function() {
              let awake,
              hdep = 370,
              borders = {},
              handle = {},
              Severity: Major
              Found in src/app/jcrop/jquery.Jcrop.js - About 7 hrs to fix

                ItemsClient has 43 functions (exceeds 20 allowed). Consider refactoring.
                Open

                @Injectable({ providedIn: 'any' })
                export class ItemsClient {
                private client: GrpcClient<any>;
                 
                /**
                Severity: Minor
                Found in src/grpc/spec.pbsc.ts - About 5 hrs to fix

                  `` has 42 functions (exceeds 20 allowed). Consider refactoring.
                  Open

                  $raw = {
                  /**
                  * Unary call: /goautowp.Items/GetItemOfDay
                  *
                  * @param requestMessage Request message
                  Severity: Minor
                  Found in src/grpc/spec.pbsc.ts - About 5 hrs to fix

                    PicturesClient has 35 functions (exceeds 20 allowed). Consider refactoring.
                    Open

                    @Injectable({ providedIn: 'any' })
                    export class PicturesClient {
                    private client: GrpcClient<any>;
                     
                    /**
                    Severity: Minor
                    Found in src/grpc/spec.pbsc.ts - About 4 hrs to fix

                      `` has 34 functions (exceeds 20 allowed). Consider refactoring.
                      Open

                      $raw = {
                      /**
                      * Unary call: /goautowp.Pictures/View
                      *
                      * @param requestMessage Request message
                      Severity: Minor
                      Found in src/grpc/spec.pbsc.ts - About 4 hrs to fix

                        Function getFixed has 84 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        function getFixed() {
                        if (!options.aspectRatio) {
                        return getRect();
                        }
                        // This function could use some optimization I think...
                        Severity: Major
                        Found in src/app/jcrop/jquery.Jcrop.js - About 3 hrs to fix

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

                          const Tracker = (function() {
                          let onMove = function () {
                          },
                          onDone = function () {
                          };
                          Severity: Major
                          Found in src/app/jcrop/jquery.Jcrop.js - About 2 hrs to fix

                            Function cataloguePathMatcher has a Cognitive Complexity of 17 (exceeds 5 allowed). Consider refactoring.
                            Open

                            export function cataloguePathMatcher(url: UrlSegment[]) {
                            if (url.length <= 0) {
                            return null;
                            }
                             
                             
                            Severity: Minor
                            Found in src/app/catalogue/matcher.ts - About 2 hrs to fix

                            Function getRect has 52 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                            function getRect() {
                            let xsize = x2 - x1,
                            ysize = y2 - y1,
                            delta;
                             
                             
                            Severity: Major
                            Found in src/app/jcrop/jquery.Jcrop.js - About 2 hrs to fix

                              Function cataloguePathMatcher has 47 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                              export function cataloguePathMatcher(url: UrlSegment[]) {
                              if (url.length <= 0) {
                              return null;
                              }
                               
                               
                              Severity: Minor
                              Found in src/app/catalogue/matcher.ts - About 1 hr to fix

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

                                function dragmodeHandler(mode, f) {
                                return function(pos) {
                                if (!options.aspectRatio) {
                                switch (mode) {
                                case 'e':
                                Severity: Minor
                                Found in src/app/jcrop/jquery.Jcrop.js - About 1 hr to fix

                                  Function interfaceUpdate has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                  function interfaceUpdate(
                                  alt // This method tweaks the interface based on options object. // Called when options are changed and at end of initialization.
                                  ) {
                                  if (alt) {
                                  Selection.enableOnly();
                                  Severity: Minor
                                  Found in src/app/jcrop/jquery.Jcrop.js - About 1 hr to fix

                                    Function handleError has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                                    Open

                                    public handleError(error: unknown) {
                                    if (typeof error === 'string') {
                                    this.error(error);
                                    return;
                                    }
                                    Severity: Minor
                                    Found in src/app/toasts/toasts.service.ts - About 45 mins to fix
                                    Severity
                                    Category
                                    Status
                                    Source
                                    Language