partkeepr/PartKeepr

View on GitHub

Showing 481 of 922 total issues

Function onAddParameterFilter has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    onAddParameterFilter: function (rec) {
        var subFilters = [];


        subFilters.push( Ext.create("PartKeepr.util.Filter", {

    Function createLayout has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        createLayout: function ()
        {
            this.statusBar = Ext.create("PartKeepr.Statusbar");
    
            this.messageLog = this.createMessageLog();
    Severity: Minor
    Found in src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js - About 1 hr to fix

      Method import has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function import($row, $obj = null)
          {
              if ($obj === null) {
                  $obj = new $this->baseEntity();
                  $this->persist($obj);
      Severity: Minor
      Found in src/PartKeepr/ImportBundle/Configuration/Configuration.php - About 1 hr to fix

        Method getExtJSFieldMapping has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            protected function getExtJSFieldMapping($type)
            {
                switch ($type) {
                    case 'integer':
                        return 'int';

          Method import has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function import($preview = false)
              {
                  $entities = [];
                  $logs = [];
          
          
          Severity: Minor
          Found in src/PartKeepr/ImportBundle/Service/ImporterService.php - About 1 hr to fix

            Function fs_error has 26 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                            , fs_error = function() {
                                if (target_view && is_safari && typeof FileReader !== "undefined") {
                                    // Safari doesn't allow downloading of blob urls
                                    var reader = new FileReader();
                                    reader.onloadend = function() {
            Severity: Minor
            Found in src/PartKeepr/FrontendBundle/Resources/public/js/Util/FileSaver.js - About 1 hr to fix

              Function SIUnitPrefix has 26 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  SIUnitPrefix: function( q_value, q_unit )
                  {
                      // the new Octopart API returns quantities as display strings: e.g. "12 mm"
                      // try to recognize SI-unit and SI-prefix
                      

                Function onSetValueClick has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    onSetValueClick: function (widgetColumn)
                    {
                        this.editingRecord = widgetColumn.getWidgetRecord();
                
                
                

                  Function getFramedPanel has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      getFramedPanel: function () {
                          return this.applySizing('framedPanel', {
                              xtype: 'panel',
                              title: 'Framed Panel',
                              animCollapse: true,

                    Function launch has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        launch: function ()
                        {
                            Ext.setGlyphFontFamily('FontAwesome');
                            Ext.get("loader-wrapper").hide();
                            Ext.setLocale('en_US');
                    Severity: Minor
                    Found in src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js - About 1 hr to fix

                      Method testMimeType has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          public function testMimeType()
                          {
                              $client = static::makeClient(true);
                      
                              $file = __DIR__.'/Fixtures/files/uploadtest.png';
                      Severity: Minor
                      Found in src/PartKeepr/UploadedFileBundle/Tests/FileControllerTest.php - About 1 hr to fix

                        Method testGetFile has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            public function testGetFile()
                            {
                                $client = static::makeClient(true);
                        
                                $file = __DIR__.'/Fixtures/files/uploadtest.png';
                        Severity: Minor
                        Found in src/PartKeepr/UploadedFileBundle/Tests/FileControllerTest.php - About 1 hr to fix

                          Function initComponent has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              initComponent: function ()
                              {
                                  this.testResultPanel = Ext.create("PartKeeprSetup.TestResultPanel", {
                                      flex: 1
                                  });
                          Severity: Minor
                          Found in web/setup/js/Cards/AbstractTestCard.js - About 1 hr to fix

                            Method replaceFromURL has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                public function replaceFromURL(UploadedFile $file, $url)
                                {
                                    /* Some sites don't like automated requests. But the internet is meant to be open for anybody,
                                     * even for scripts. So we are evil and fake the headers.
                                     *
                            Severity: Minor
                            Found in src/PartKeepr/UploadedFileBundle/Services/UploadedFileService.php - About 1 hr to fix

                              Method getPartByUID has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public function getPartByUID($uid)
                                  {
                                      try {
                                          $redisclient = new PredisClient();
                                          $redisclient->connect();
                              Severity: Minor
                              Found in src/PartKeepr/OctoPartBundle/Services/OctoPartService.php - About 1 hr to fix

                                Method testProjectPartRemoval has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function testProjectPartRemoval()
                                    {
                                        $client = static::makeClient(true);
                                
                                        $project = $this->fixtures->getReference('project');
                                Severity: Minor
                                Found in src/PartKeepr/ProjectBundle/Tests/ProjectTest.php - About 1 hr to fix

                                  Function renderer has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                      renderer: function (value, metaData, record, rowIndex, colIndex, store, view, renderObj)

                                    Function renderer has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                        renderer: function (value, metaData, record, rowIndex, colIndex, store, view, renderObj)

                                      Function renderer has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          renderer: function (value, metaData, record, rowIndex, colIndex, store, view, renderObj)

                                        Function renderer has 8 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            renderer: function (value, metaData, record, rowIndex, colIndex, store, view, renderObj)
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language