partkeepr/PartKeepr

View on GitHub

Showing 481 of 922 total issues

Method getFilterExpression has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function getFilterExpression(QueryBuilder $queryBuilder, Filter $filter)
    {
        if ($filter->hasSubFilters()) {
            $subFilterExpressions = [];

    Function updateButtonState has 30 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        updateButtonState: function ()
        {
            var record;
    
            if (this.getSelection().length !== 1)

      Function _onItemSaved has 30 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          _onItemSaved: function ()
          {
              this.fireEvent("partSaved", this.record);
      
              if (this.keepOpenCheckbox.getValue() !== true && this.createCopyCheckbox.getValue() !== true) {

        Function onSuccess has 30 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            onSuccess: function (response)
            {
                var obj;
        
                try {
        Severity: Minor
        Found in web/setup/js/SetupTests/AbstractTest.js - About 1 hr to fix

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

              initComponent: function ()
              {
          
                  this.createDatabaseDropdown();
          
          
          Severity: Minor
          Found in web/setup/js/Cards/DatabaseParametersCard.js - About 1 hr to fix

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

                createLayout: function ()
                {
                    var initialConfig = {
                        values: {
                            database_driver: "",
            Severity: Minor
            Found in web/setup/js/PartKeeprSetup.js - About 1 hr to fix

              Method __invoke has 30 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                  public function __invoke(Request $request)
                  {
                      if ($this->container->hasParameter('partkeepr.auth.allow_password_change') &&
                          $this->container->getParameter('partkeepr.auth.allow_password_change') === false) {
                          throw new PasswordChangeNotAllowedException();
              Severity: Minor
              Found in src/PartKeepr/AuthBundle/Action/ChangePasswordAction.php - About 1 hr to fix

                Method testProjectAttachmentRemoval has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                    public function testProjectAttachmentRemoval()
                    {
                        $client = static::makeClient(true);
                
                        /**
                Severity: Minor
                Found in src/PartKeepr/ProjectBundle/Tests/ProjectTest.php - About 1 hr to fix

                  Function createPicker has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                      createPicker: function() {
                          var me = this,
                              picker = new Ext.tree.Panel({
                                  baseCls: Ext.baseCSSPrefix + 'boundlist',
                                  shrinkWrapDock: 2,

                    Function reconfigureColumns has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                        reconfigureColumns: function (columnsStore)
                        {
                            var columns = [
                                {
                                    text: i18n("Match field"),

                      Function execute has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                          execute: function ()
                          {
                              var subFilters = [];
                              var searchValue;
                      
                      

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

                            initComponent: function ()
                            {
                                this.connectionButton = new PartKeepr.ConnectionButton();
                                this.connectionButton.on("click", this.onConnectionButtonClick, this);
                                this.timeDisplay = Ext.create("PartKeepr.TimeDisplay");

                          Function convertTraceToTree has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              convertTraceToTree: function (node, prefixText)
                              {
                                  if (!Ext.isDefined(prefixText)) {
                                      prefixText = typeof node;
                                  }

                            Function getColumnMenu has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                getColumnMenu: function (headerContainer)
                                {
                                    var menuItems = [],
                                        i = 0,
                                        item,

                              Function read has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  read: function(response, readOptions) {
                                      var data, result, responseText;
                              
                                      if (response) {
                                          responseText = response.responseText;

                                Method intTestDBVersionAction has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public function intTestDBVersionAction(Request $request)
                                    {
                                        if (!$this->ensureAuthKey($request)) {
                                            return $this->getAuthKeyErrorResponse();
                                        }
                                Severity: Minor
                                Found in src/PartKeepr/SetupBundle/Controller/SetupController.php - About 1 hr to fix

                                  Method getPartyByQuery has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function getPartyByQuery($q, $startpage = 1)
                                      {
                                          $client = new Client();
                                  
                                          $request = $client->createRequest('POST', self::OCTOPART_ENDPOINT);
                                  Severity: Minor
                                  Found in src/PartKeepr/OctoPartBundle/Services/OctoPartService.php - About 1 hr to fix

                                    Method getRelease has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        public function getRelease()
                                        {
                                            switch (strtolower($this->getPlatform())) {
                                                case 'freebsd':
                                                    /*
                                    Severity: Minor
                                    Found in src/PartKeepr/CoreBundle/System/OperatingSystem.php - About 1 hr to fix

                                      Method createReportAction has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          public function createReportAction(Request $request)
                                          {
                                              /**
                                               * @var ResourceInterface
                                               */
                                      Severity: Minor
                                      Found in src/PartKeepr/ProjectBundle/Controller/ProjectReportController.php - About 1 hr to fix

                                        Function getFramedGrid has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            getFramedGrid: function () {
                                                return this.applySizing('framedGrid', {
                                                    xtype: 'grid',
                                                    title: 'Framed Grid',
                                                    collapsible: true,
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language