3scale/porta

View on GitHub
app/lib/three_scale/analytics.rb

Summary

Maintainability
A
0 mins
Test Coverage

ThreeScale::Analytics#track is controlled by argument 'properties'
Open

      new(user).track(event, properties || {})
Severity: Minor
Found in app/lib/three_scale/analytics.rb by reek

Control Parameter is a special case of Control Couple

Example

A simple example would be the "quoted" parameter in the following method:

def write(quoted)
  if quoted
    write_quoted @value
  else
    write_unquoted @value
  end
end

Fixing those problems is out of the scope of this document but an easy solution could be to remove the "write" method alltogether and to move the calls to "writequoted" / "writeunquoted" in the initial caller of "write".

ThreeScale::Analytics#user_tracking doesn't depend on instance state (maybe move it to another class?)
Open

    def user_tracking(user, **options)
Severity: Minor
Found in app/lib/three_scale/analytics.rb by reek

A Utility Function is any instance method that has no dependency on the state of the instance.

There are no issues that match your filters.

Category
Status