presidentbeef/brakeman

View on GitHub
lib/brakeman/checks/base_check.rb

Summary

Maintainability
B
4 hrs
Test Coverage
A
93%

Avoid deeply nested control flow statements.
Open

            return match if match
Severity: Major
Found in lib/brakeman/checks/base_check.rb - About 45 mins to fix

    Avoid deeply nested control flow statements.
    Open

                return match if match
    Severity: Major
    Found in lib/brakeman/checks/base_check.rb - About 45 mins to fix

      Avoid deeply nested control flow statements.
      Open

                if exp.value.node_type == :rlist
                  exp.value.each_sexp do |e|
                    if match = has_immediate_model?(e, out)
                      return match
                    end
      Severity: Major
      Found in lib/brakeman/checks/base_check.rb - About 45 mins to fix

        Avoid deeply nested control flow statements.
        Open

                  if exp.value.node_type == :rlist
                    exp.value.each_sexp do |e|
                      match = has_immediate_user_input?(e)
                      return match if match
                    end
        Severity: Major
        Found in lib/brakeman/checks/base_check.rb - About 45 mins to fix

          Avoid too many return statements within this method.
          Open

                    return match if match
          Severity: Major
          Found in lib/brakeman/checks/base_check.rb - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

                        return match if match
            Severity: Major
            Found in lib/brakeman/checks/base_check.rb - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                            return match if match
              Severity: Major
              Found in lib/brakeman/checks/base_check.rb - About 30 mins to fix

                There are no issues that match your filters.

                Category
                Status