partkeepr/PartKeepr

View on GitHub

Showing 481 of 922 total issues

Function rowkeydown has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

                        rowkeydown: function (grid, record, tr, rowIndex, e)

    Function callCollectionAction has 5 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        callCollectionAction: function (action, method, parameters, callback, ignoreException)
    Severity: Minor
    Found in src/PartKeepr/FrontendBundle/Resources/public/js/Data/HydraProxy.js - About 35 mins to fix

      Function processCallActionResponse has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          processCallActionResponse: function (options, success, response, ignoreException, action)
      Severity: Minor
      Found in src/PartKeepr/FrontendBundle/Resources/public/js/Data/HydraProxy.js - About 35 mins to fix

        Function onBeforeDrop has 5 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            onBeforeDrop: function (node, data, overModel, dropPosition, dropHandlers)

          Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
          Open

                  DataProviderInterface $dataProvider,
                  IriConverter $iriConverter,
                  EntityManager $em,
                  AdvancedSearchFilter $advancedSearchFilter,
                  ReflectionService $reflectionService
          Severity: Minor
          Found in src/PartKeepr/BatchJobBundle/Action/ExecuteBatchJobAction.php - About 35 mins to fix

            Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                    TokenStorage $tokenStorage,
                    EntityManager $entityManager,
                    UserManipulator $userManipulator,
                    UserManagerInterface $userManager,
                    $userLimit = false
            Severity: Minor
            Found in src/PartKeepr/AuthBundle/Services/UserService.php - About 35 mins to fix

              Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

                      UploadedFileService $uploadedFileService,
                      ImageService $imageService,
                      Reader $reader,
                      PropertyAccessorInterface $propertyAccessor,
                      IriConverterInterface $iriConverter

                Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                        UserService $userService,
                        UserManipulator $userManipulator,
                        EncoderFactory $encoderFactory,
                        UserManagerInterface $userManager,
                        ContainerInterface $container
                Severity: Minor
                Found in src/PartKeepr/AuthBundle/Action/ChangePasswordAction.php - About 35 mins to fix

                  Function savePreset has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      savePreset: function (presetName)
                      {
                          var presetRecord = this.getSelectedRecord();
                  
                          if (presetRecord === null) {

                  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 encode_base64 has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                  bCrypt.prototype.encode_base64 = function(d, len) {
                      var off = 0;
                      var rs = [];
                      var c1;
                      var c2;
                  Severity: Minor
                  Found in src/PartKeepr/FrontendBundle/Resources/public/js/Util/Crypto/bcrypt.js - About 35 mins to fix

                  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 initComponent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      initComponent: function () {
                          var target, menuItemIterator;
                  
                          this.ui = "mainmenu";
                  
                  
                  Severity: Minor
                  Found in src/PartKeepr/FrontendBundle/Resources/public/js/Components/MenuBar.js - About 35 mins to fix

                  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 initComponent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      initComponent: function ()
                      {
                          var modelFieldSelector = Ext.create({
                              xtype: 'modelFieldSelector',
                              border: false,

                  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 getErrors has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      getErrors: function(value) {
                          var me = this,
                              errors = [], // This is a hack because of the strange class layout...
                              format = Ext.String.format,
                              num;
                  Severity: Minor
                  Found in src/PartKeepr/FrontendBundle/Resources/public/js/Ext.ux/NumericField.js - About 35 mins to fix

                  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 initComponent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      initComponent: function ()
                      {
                  
                          if (this.imageUpload) {
                              this.uploadURL = PartKeepr.getBasePath() + "/api/temp_images/upload";

                  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 _onFilterRemove has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      _onFilterRemove: function ()
                      {
                          var filterPlugin;
                          if (this.suspendRemovals) {
                              return;

                  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 getUserPreference has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      getUserPreference: function (key, defaultValue)
                      {
                          var record = this.userPreferenceStore.findRecord("preferenceKey", key);
                  
                          if (record) {
                  Severity: Minor
                  Found in src/PartKeepr/FrontendBundle/Resources/public/js/PartKeepr.js - About 35 mins to fix

                  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 initComponent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      initComponent: function () {
                  
                          /**
                           * Create the store with the default sorter "name ASC"
                           */

                  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 initComponent has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      initComponent: function ()
                      {
                          // Defines the overall height of all fields, used to calculate the anchoring for the description field
                          var overallHeight = (this.partMode == "create") ? 320: 265;
                  
                  

                  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 onEdit has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      onEdit: function (editor, context)
                      {
                          if (context.field === "distributor" && context.record.getDistributor() !== null)
                          {
                              var partDistributors = context.record.getPart().distributors();

                  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 getFilters has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring.
                  Open

                      getFilters: function ()
                      {
                          var enableFilters = [],
                              disableFilters = [],
                              filterPlugin;

                  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