danini-the-panini/mittsu

View on GitHub

Showing 226 of 659 total issues

Method render_buffer has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

    def render_buffer(camera, lights, fog, material, geometry_group, object)
Severity: Minor
Found in lib/mittsu/renderers/opengl_renderer.rb - About 45 mins to fix

    Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        def initialize(radius = 100.0, tube = 40.0, radial_segments = 64, tubular_segments = 8, p_val = 2, q_val = 3)
    Severity: Minor
    Found in lib/mittsu/extras/geometries/torus_knot_buffer_geometry.rb - About 45 mins to fix

      Method render_buffer has 6 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          def render_buffer(camera, lights, fog, material, geometry_group, update_buffers)
      Severity: Minor
      Found in lib/mittsu/renderers/opengl/objects/line.rb - About 45 mins to fix

        Method render_buffer has 6 arguments (exceeds 4 allowed). Consider refactoring.
        Open

            def render_buffer(camera, lights, fog, material, geometry_group, update_buffers)
        Severity: Minor
        Found in lib/mittsu/renderers/opengl/objects/point_cloud.rb - About 45 mins to fix

          Avoid deeply nested control flow statements.
          Open

                    elsif custom_attribute[:size] == 4
                      if custom_attribute[:bound_to].nil? || custom_attribute[:bound_to] == :vertices
                        @faces3.each do |chf|
                          face = obj_faces[chf]
          
          
          Severity: Major
          Found in lib/mittsu/renderers/opengl/opengl_geometry_group.rb - About 45 mins to fix

            Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                def initialize(color = nil, intensity = 1.0, distance = 0.0, angle = (::Math::PI / 3.0), exponent = 10.0, decay = 1.0)
            Severity: Minor
            Found in lib/mittsu/lights/spot_light.rb - About 45 mins to fix

              Avoid deeply nested control flow statements.
              Open

                      if m31.abs < 0.99999
                        @x = ::Math.atan2(m32, m33)
                        @z = ::Math.atan2(m21, m11)
                      else
                        @x = 0.0
              Severity: Major
              Found in lib/mittsu/math/euler.rb - About 45 mins to fix

                Avoid deeply nested control flow statements.
                Open

                      elsif order == 'YZX'
                        @z = ::Math.asin(Math.clamp(m21, -1.0, 1.0))
                        if m21.abs < 0.99999
                          @x = ::Math.atan2(- m23, m22)
                          @y = ::Math.atan2(- m31, m11)
                Severity: Major
                Found in lib/mittsu/math/euler.rb - About 45 mins to fix

                  Avoid deeply nested control flow statements.
                  Open

                              s1 = (s0 > 0) ? seg_extent : [[-seg_extent, -b1].max, seg_extent].min
                  Severity: Major
                  Found in lib/mittsu/math/ray.rb - About 45 mins to fix

                    Method initialize has 6 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                        def initialize(a, b, c, normal = nil, color = nil, material_index = nil)
                    Severity: Minor
                    Found in lib/mittsu/core/face3.rb - About 45 mins to fix

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

                          def initialize(radius = 100.0, tube = 40.0, radial_segments = 8, tubular_segments = 6, arc = (::Math::PI * 2.0))
                      Severity: Minor
                      Found in lib/mittsu/extras/geometries/torus_geometry.rb - About 35 mins to fix

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

                            def intersect_triangle(a, b, c, backface_culling, target = Mittsu::Vector3.new)
                        Severity: Minor
                        Found in lib/mittsu/math/ray.rb - About 35 mins to fix

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

                              def set_program(camera, lights, fog, material, object)
                          Severity: Minor
                          Found in lib/mittsu/renderers/opengl_renderer.rb - About 35 mins to fix

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

                                def test_point(point, index, local_threshold, raycaster, intersects)
                            Severity: Minor
                            Found in lib/mittsu/objects/point_cloud.rb - About 35 mins to fix

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

                                  def calculate_position_on_curve(u, p_val, q_val, radius, position)
                              Severity: Minor
                              Found in lib/mittsu/extras/geometries/torus_knot_buffer_geometry.rb - About 35 mins to fix

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

                                    def render_objects(render_list, camera, lights, fog, override_material)
                                Severity: Minor
                                Found in lib/mittsu/renderers/opengl_renderer.rb - About 35 mins to fix

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

                                      def self.barycoord_from_point(point, a, b, c, target = Mittsu::Vector3.new)
                                  Severity: Minor
                                  Found in lib/mittsu/math/triangle.rb - About 35 mins to fix

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

                                        def self.map_linear(x, a1, a2, b1, b2)
                                    Severity: Minor
                                    Found in lib/mittsu/math.rb - About 35 mins to fix

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

                                          def set_array2(array, i2, a, b = a, c = b)
                                      Severity: Minor
                                      Found in lib/mittsu/core/buffer_geometry.rb - About 35 mins to fix

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

                                            def set_xyzw(index, x, y, z, w)
                                        Severity: Minor
                                        Found in lib/mittsu/core/buffer_attribute.rb - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language