presidentbeef/brakeman

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

Summary

Maintainability
A
1 hr
Test Coverage
C
74%

Avoid deeply nested control flow statements.
Open

           if string? v
             add_route_from_string v[1]
           elsif in_controller_block? and symbol? v
             add_route v
           end
Severity: Major
Found in lib/brakeman/processors/lib/rails3_route_processor.rb - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

              if string? v
                add_route_from_string v
              else
                add_route v
              end
    Severity: Major
    Found in lib/brakeman/processors/lib/rails3_route_processor.rb - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status