JustalK/PORTFOLIO

View on GitHub

Showing 42 of 42 total issues

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

function createPanel(sx,sy,sz,x,y,z) {
Severity: Minor
Found in src/animation/animations3D.js - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

    if(zoomIn==false || (zoomOn!=null && zoomOn.children!=childrens)) {
    for(var i=childrens.length;i--;) {
    if(childrens[i]["panel"]) {
    childrens[i].material[4].opacity = 0;
    }
    Severity: Major
    Found in src/animation/animations3D.js - About 45 mins to fix

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

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

        Avoid deeply nested control flow statements.
        Open

        if(childrens[i]["wireframe"]) {
        childrens[i].material.color = new THREE.Color(WIREFRAME_COLOR_HOVER);
        }
        Severity: Major
        Found in src/animation/animations3D.js - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

          for(var i=childrens.length;i--;) {
          if(childrens[i]["wireframe"]) {
          childrens[i].material.color = new THREE.Color(WIREFRAME_COLOR);
          }
          }
          Severity: Major
          Found in src/animation/animations3D.js - About 45 mins to fix

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

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

              Avoid deeply nested control flow statements.
              Open

              if(childrens[i]["panel"]) {
              childrens[i].material[4].opacity = 1;
              }
              Severity: Major
              Found in src/animation/animations3D.js - About 45 mins to fix

                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

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  module.exports = {
                  vertexShader: () => {
                  return `
                  varying vec2 vUv;
                  uniform float uTime;
                  Severity: Minor
                  Found in src/materials/image.js and 1 other location - About 40 mins to fix
                  src/materials/fog.js on lines 1..73

                  Similar blocks of code found in 2 locations. Consider refactoring.
                  Open

                  module.exports = {
                  vertexShader: () => {
                  return `
                  varying vec2 vUv;
                  void main() {
                  Severity: Minor
                  Found in src/materials/fog.js and 1 other location - About 40 mins to fix
                  src/materials/image.js on lines 1..87

                  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

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    get_project_by_slug: async (slug) => {
                    return axios_call(utils.get_server_address() + '/api/articles/one', {
                    params: { slug: slug, populate: 1 }
                    });
                    },
                    Severity: Minor
                    Found in src/services/api.js and 1 other location - About 35 mins to fix
                    src/services/api.js on lines 26..30

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    groupScene.push(createBoard("https://onarto.com/",1800,1800,1000,0,0,Math.radians(-60),1800,1800,1500,0,0,Math.radians(-60)));
                    Severity: Minor
                    Found in src/animation/animations3D.js and 1 other location - About 35 mins to fix
                    src/animation/animations3D.js on lines 478..478

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    get_project_by_id: async (id) => {
                    return axios_call(utils.get_server_address() + '/api/articles/one', {
                    params: { id: id, populate: 1 }
                    });
                    },
                    Severity: Minor
                    Found in src/services/api.js and 1 other location - About 35 mins to fix
                    src/services/api.js on lines 31..35

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    groupScene.push(createBoard("http://www.odyssea.info/",2000,250,2400,0,0,Math.radians(-70),2000,250,3000,0,0,Math.radians(-70)));
                    Severity: Minor
                    Found in src/animation/animations3D.js and 1 other location - About 35 mins to fix
                    src/animation/animations3D.js on lines 477..477

                    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

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    material2 = new THREE.MeshBasicMaterial( { map: new THREE.TextureLoader().load(TEXTURE_BUTTON_VISIT), transparent: true, opacity: 1 } );
                    Severity: Minor
                    Found in src/animation/animations3D.js and 1 other location - About 35 mins to fix
                    src/animation/animations3D.js on lines 499..499

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    material = new THREE.MeshBasicMaterial( { map: new THREE.TextureLoader().load(TEXTURE_BUTTON_BACK), transparent: true, opacity: 1 } );
                    Severity: Minor
                    Found in src/animation/animations3D.js and 1 other location - About 35 mins to fix
                    src/animation/animations3D.js on lines 500..500

                    Similar blocks of code found in 2 locations. Consider refactoring.
                    Open

                    request.open('GET', window.location.protocol+"//"+window.location.hostname+":"+window.location.port+'/api/documentation/template.html', false);
                    Severity: Minor
                    Found in documentation/details.js and 1 other location - About 30 mins to fix
                    src/helper/meta.js on lines 15..15
                    Severity
                    Category
                    Status
                    Source
                    Language