firehoseio/firehose

View on GitHub
lib/firehose/server/channel_subscription.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
94%

TODO found
Open

        # TODO -ARRRG!!!! We can't listen to deferrables here. Need to expose those

Use == if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition.
Open

          if mf = Server.configuration.message_filter

This cop checks for assignments in the conditions of if/while/until.

Example:

# bad

if some_var = true
  do_something
end

Example:

# good

if some_var == true
  do_something
end

Use == if you meant to do a comparison or wrap the expression in parentheses to indicate you meant to assign in a condition.
Open

          if realIp = env["HTTP_X_FORWARDED_FOR"]

This cop checks for assignments in the conditions of if/while/until.

Example:

# bad

if some_var = true
  do_something
end

Example:

# good

if some_var == true
  do_something
end

There are no issues that match your filters.

Category
Status