myfreecomm/rexpense-client-ruby

View on GitHub
lib/rexpense/resources/advancement_devolution.rb

Summary

Maintainability
A
0 mins
Test Coverage

Prefer to_s over string interpolation.
Open

        http.post("#{endpoint_base}", body: params) do |response|

This cop checks for strings that are just an interpolated expression.

Example:

# bad
"#{@var}"

# good
@var.to_s

# good if @var is already a String
@var

Extra empty line detected at class body beginning.
Open


      #

This cops checks if empty lines around the bodies of classes match the configuration.

Example: EnforcedStyle: empty_lines

# good

class Foo

  def bar
    # ...
  end

end

Example: EnforcedStyle: emptylinesexcept_namespace

# good

class Foo
  class Bar

    # ...

  end
end

Example: EnforcedStyle: emptylinesspecial

# good
class Foo

  def bar; end

end

Example: EnforcedStyle: noemptylines (default)

# good

class Foo
  def bar
    # ...
  end
end

There are no issues that match your filters.

Category
Status