JustalK/PORTFOLIO

View on GitHub

Showing 25 of 42 total issues

Function createSideWireframe has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

function createSideWireframe(x,y,z,rx,ry,rz) {
Severity: Minor
Found in src/animation/animations3D.js - About 45 mins to fix

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

    class_to_elements_increase(ref_elements, newclass, min, increase, fc) {
    Severity: Minor
    Found in src/helper/utils.js - About 35 mins to fix

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

      function loadTexturesOnMove() {
      hasMouseMove = true;
      material = new THREE.MeshBasicMaterial( { map: new THREE.TextureLoader().load(TEXTURE_BUTTON_BACK), transparent: true, opacity: 1 } );
      material2 = new THREE.MeshBasicMaterial( { map: new THREE.TextureLoader().load(TEXTURE_BUTTON_VISIT), transparent: true, opacity: 1 } );
      Severity: Minor
      Found in src/animation/animations3D.js - About 35 mins to fix

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

      function moveCameraToBoard() {
      for(var i=movements.length;i--;) {
      if(isMoveCameraTo(movements[i],camera.position.getComponent(i),positionFinal[i])) {
      add = delta * movements[i] * speedTranslation[i];
      camera.position.setComponent(i,camera.position.getComponent(i) + add);
      Severity: Minor
      Found in src/animation/animations3D.js - About 35 mins to fix

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

      update(mouse_x, mouse_y) {
      const dx = mouse_x - this.x;
      const dy = mouse_y - this.y;
      const distance = Math.sqrt(dx * dx + dy * dy);
      const force_direction_x = dx / distance;
      Severity: Minor
      Found in src/helper/particle.js - About 25 mins to fix
      Severity
      Category
      Status
      Source
      Language