fga-eps-mds/2019.2-Vsign

View on GitHub
backend/app/graphql/queries/current_user.rb

Summary

Maintainability
A
0 mins
Test Coverage

Redundant return detected.
Open

      return context[:current_user]

This cop checks for redundant return expressions.

Example:

def test
  return something
end

def test
  one
  two
  three
  return something
end

It should be extended to handle methods whose body is if/else or a case expression with a default branch.

Final newline missing.
Open

end

Missing top-level class documentation comment.
Open

  class CurrentUser < BaseQuery

This cop checks for missing top-level documentation of classes and modules. Classes with no body are exempt from the check and so are namespace modules - modules that have nothing in their bodies except classes, other modules, or constant definitions.

The documentation requirement is annulled if the class or module has a "#:nodoc:" comment next to it. Likewise, "#:nodoc: all" does the same for all its children.

Example:

# bad
class Person
  # ...
end

# good
# Description/Explanation of Person class
class Person
  # ...
end

There are no issues that match your filters.

Category
Status