lib/brakeman/checks/check_redirect.rb
Consider simplifying this complex logical expression. Open
Open
if not protected_by_raise?(call) and
not only_path?(call) and
not explicit_host?(opt) and
not slice_call?(opt) and
not safe_permit?(opt) and
Consider simplifying this complex logical expression. Open
Open
if node_type? exp, :or
decorated_model? exp.lhs or decorated_model? exp.rhs
else
tracker.config.has_gem? :draper and
call? exp and
Avoid too many return
statements within this method. Open
Open
return Match.new(immediate, opt)
Avoid too many return
statements within this method. Open
Open
return false
Avoid too many return
statements within this method. Open
Open
return (include_user_input?(opt.lhs) or include_user_input?(opt.rhs))
Avoid too many return
statements within this method. Open
Open
return false
Avoid too many return
statements within this method. Open
Open
return Match.new(immediate, opt)