lighttroupe/luz

View on GitHub
luz_performer.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Method command_line_options has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def command_line_options
        OptionParser.new do |opts|
            opts.banner = "Usage: luz.rb [options] [project.luz]"

            opts.on("--width <width>", Integer, "Resolution width (eg. 800)") do |w|
Severity: Minor
Found in luz_performer.rb - About 1 hr to fix

    Method handle_sdl_event has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def handle_sdl_event(event)
            case event
            # Mouse input
            when SDL2::Event::MouseMotion
                $engine.on_slider_change(MOUSE_1_X, (event.x / (@width - 1).to_f))
    Severity: Minor
    Found in luz_performer.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status