dry-rb/dry-types

View on GitHub
dry-types.gemspec

Summary

Maintainability
Test Coverage

Block has too many lines. [32/25]
Open

Gem::Specification.new do |spec|
  spec.name          = 'dry-types'
  spec.version       = Dry::Types::VERSION.dup
  spec.authors       = ['Piotr Solnica']
  spec.email         = ['piotr.solnica@gmail.com']
Severity: Minor
Found in dry-types.gemspec by rubocop

This cop checks if the length of a block exceeds some maximum value. Comment lines can optionally be ignored. The maximum allowed length is configurable. The cop can be configured to ignore blocks passed to certain methods.

Line is too long. [135/100]
Open

  spec.files         = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - ['bin/console', 'bin/setup']
Severity: Minor
Found in dry-types.gemspec by rubocop

Line is too long. [137/100]
Open

  spec.summary       = 'Type system for Ruby supporting coercions, constraints and complex types like structs, value objects, enums etc.'
Severity: Minor
Found in dry-types.gemspec by rubocop

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

  if spec.respond_to?(:metadata)
Severity: Minor
Found in dry-types.gemspec by rubocop

Use a guard clause instead of wrapping the code inside a conditional expression

Example:

# bad
def test
  if something
    work
  end
end

# good
def test
  return unless something
  work
end

# also good
def test
  work if something
end

# bad
if something
  raise 'exception'
else
  ok
end

# good
raise 'exception' if something
ok

There are no issues that match your filters.

Category
Status