jwhitcraft/dockercompose-generator

View on GitHub
lib/docker-compose/generator/service/pid.rb

Summary

Maintainability
A
0 mins
Test Coverage

Do not return a value in pid=.
Open

          return @attrs['pid'] = 'host' if value.is_a?(TrueClass)

This cop checks for the use of a return with a value in a context where the value will be ignored. (initialize and setter methods)

Example:

# bad
def initialize
  foo
  return :qux if bar?
  baz
end

def foo=(bar)
  return 42
end

Example:

# good
def initialize
  foo
  return if bar?
  baz
end

def foo=(bar)
  return
end

There are no issues that match your filters.

Category
Status