fga-eps-mds/2019.2-Vsign

View on GitHub
backend/app/controllers/graphql_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Method has too many lines. [17/10]
Open

  def execute
    variables = ensure_hash(params[:variables])
    query = params[:query]
    operation_name = params[:operationName]
    context = {

This cop checks if the length of a method exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable.

Assignment Branch Condition size for execute is too high. [16.28/15]
Open

  def execute
    variables = ensure_hash(params[:variables])
    query = params[:query]
    operation_name = params[:operationName]
    context = {

This cop checks that the ABC size of methods is not higher than the configured maximum. The ABC size is based on assignments, branches (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric

Trailing whitespace detected.
Open

      context: context, 

Trailing whitespace detected.
Open

      }, 

Trailing whitespace detected.
Open

      variables: variables, 

Trailing whitespace detected.
Open

        backtrace: error.backtrace 

Trailing whitespace detected.
Open

    render json: { 

Trailing whitespace detected.
Open

        message: error.message, 

Trailing whitespace detected.
Open

      query, 

Trailing whitespace detected.
Open

      error: { 

Trailing whitespace detected.
Open

      data: {} 

Avoid comma after the last item of a hash.
Open

      login: method(:sign_in),

This cop checks for trailing comma in array and hash literals.

Example: EnforcedStyleForMultiline: consistent_comma

# bad
a = [1, 2,]

# good
a = [
  1, 2,
  3,
]

# good
a = [
  1,
  2,
]

Example: EnforcedStyleForMultiline: comma

# bad
a = [1, 2,]

# good
a = [
  1,
  2,
]

Example: EnforcedStyleForMultiline: no_comma (default)

# bad
a = [1, 2,]

# good
a = [
  1,
  2
]

There are no issues that match your filters.

Category
Status