partkeepr/PartKeepr

View on GitHub

Showing 481 of 922 total issues

Avoid too many return statements within this function.
Open

                return false;

    Avoid too many return statements within this function.
    Open

                return;

      Avoid too many return statements within this function.
      Open

              return result;

        Avoid too many return statements within this function.
        Open

                        return tmp.getFieldType(parts.join("."));
        Severity: Major
        Found in src/PartKeepr/FrontendBundle/Resources/public/js/Data/HydraModel.js - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          return 'array';
          Severity: Major
          Found in src/PartKeepr/DoctrineReflectionBundle/Services/ReflectionService.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                            return $this->em->getExpressionBuilder()->like($alias, $paramName);
            Severity: Major
            Found in src/PartKeepr/DoctrineReflectionBundle/Services/FilterService.php - About 30 mins to fix

              Avoid too many return statements within this function.
              Open

                      return ret;
              Severity: Major
              Found in src/PartKeepr/FrontendBundle/Resources/public/js/Data/HydraModel.js - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                        return null;
                Severity: Major
                Found in src/PartKeepr/ImportBundle/Configuration/ManyToOneConfiguration.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                                  return $this->em->getExpressionBuilder()->lte($alias, $paramName);
                  Severity: Major
                  Found in src/PartKeepr/DoctrineReflectionBundle/Services/FilterService.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    return 'boolean';
                    Severity: Major
                    Found in src/PartKeepr/DoctrineReflectionBundle/Services/ReflectionService.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      return 'number';
                      Severity: Major
                      Found in src/PartKeepr/DoctrineReflectionBundle/Services/ReflectionService.php - About 30 mins to fix

                        Avoid too many return statements within this function.
                        Open

                                return ret;
                        Severity: Major
                        Found in src/PartKeepr/FrontendBundle/Resources/public/js/Data/HydraModel.js - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          return 'number';
                          Severity: Major
                          Found in src/PartKeepr/DoctrineReflectionBundle/Services/ReflectionService.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                    return 'undefined';
                            Severity: Major
                            Found in src/PartKeepr/DoctrineReflectionBundle/Services/ReflectionService.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                                              return $this->em->getExpressionBuilder()->neq($alias, $paramName);
                              Severity: Major
                              Found in src/PartKeepr/DoctrineReflectionBundle/Services/FilterService.php - About 30 mins to fix

                                Function applySizing has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    applySizing: function (id, config) {
                                
                                        var info = this.getSizing(id),
                                            keys = ['width', 'height', 'x', 'y'],
                                            len = keys.length,

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function onParameterSelect has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    onParameterSelect: function (combo, value)
                                    {
                                        var prefixes, j, unitFilter = [];
                                
                                        this.valueType = value.get("valueType");

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function validateExecuteBatchJobButton has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    validateExecuteBatchJobButton: function ()
                                    {
                                        var valid = true, i;
                                
                                        var batchJobQueryFields = this.batchJob.batchJobQueryFields();

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function _onItemSave has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    _onItemSave: function ()
                                    {
                                        // Disable the save button to indicate progress
                                        if (this.enableButtons) {
                                            this.saveButton.disable();

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Function createFormConfig has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                                Open

                                    createFormConfig: function (renderer)
                                    {
                                        var configIterator, config, field, fields = [], useDescriptionElemement;
                                
                                        for (configIterator in renderer.rendererConfigs)

                                Cognitive Complexity

                                Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.

                                A method's cognitive complexity is based on a few simple rules:

                                • Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
                                • Code is considered more complex for each "break in the linear flow of the code"
                                • Code is considered more complex when "flow breaking structures are nested"

                                Further reading

                                Severity
                                Category
                                Status
                                Source
                                Language