presidentbeef/brakeman

View on GitHub
lib/brakeman/processors/controller_processor.rb

Summary

Maintainability
A
1 hr
Test Coverage
B
86%

Avoid deeply nested control flow statements.
Open

          elsif node_type? last_arg, :nil, :false
            #layout :false or layout nil
            @current_class.layout = false
Severity: Major
Found in lib/brakeman/processors/controller_processor.rb - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                if @app_tree.layout_exists?(name)
                  @current_class.layout = "layouts/#{name}"
                else
                  Brakeman.debug "[Notice] Layout not found: #{name}"
                end
    Severity: Major
    Found in lib/brakeman/processors/controller_processor.rb - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status