skcc321/dumpman

View on GitHub
dumpman.gemspec

Summary

Maintainability
Test Coverage

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

Gem::Specification.new do |spec|
  spec.name          = 'dumpman'
  spec.version       = Dumpman::VERSION
  spec.authors       = ['rafael']
  spec.email         = ['skcc321@gmail.com']
Severity: Minor
Found in dumpman.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.

Unnecessary utf-8 encoding comment.
Open

# coding: utf-8
Severity: Minor
Found in dumpman.gemspec by rubocop

Use %q only for strings that contain both single quotes and double quotes.
Open

  spec.summary       = %q{gem for playing with dumps}
Severity: Minor
Found in dumpman.gemspec by rubocop

Unnecessary spacing detected.
Open

  spec.files         = `git ls-files -z`.split("\x0").reject do |f|
Severity: Minor
Found in dumpman.gemspec by rubocop

This cop checks for extra/unnecessary whitespace.

Example:

# good if AllowForAlignment is true
name      = "RuboCop"
# Some comment and an empty line

website  += "/bbatsov/rubocop" unless cond
puts        "rubocop"          if     debug

# bad for any configuration
set_app("RuboCop")
website  = "https://github.com/bbatsov/rubocop"

Operator = should be surrounded by a single space.
Open

  spec.files         = `git ls-files -z`.split("\x0").reject do |f|
Severity: Minor
Found in dumpman.gemspec by rubocop

Checks that operators have space around them, except for ** which should not have surrounding space.

Example:

# bad
total = 3*4
"apple"+"juice"
my_number = 38/4
a ** b

# good
total = 3 * 4
"apple" + "juice"
my_number = 38 / 4
a**b

Add an empty line after magic comments.
Open

lib = File.expand_path('../lib', __FILE__)
Severity: Minor
Found in dumpman.gemspec by rubocop

Checks for a newline after the final magic comment.

Example:

# good
# frozen_string_literal: true

# Some documentation for Person
class Person
  # Some code
end

# bad
# frozen_string_literal: true
# Some documentation for Person
class Person
  # Some code
end

Line is too long. [96/80]
Open

  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
Severity: Minor
Found in dumpman.gemspec by rubocop

%q-literals should be delimited by ( and ).
Open

  spec.description   = %q{it dumps}
Severity: Minor
Found in dumpman.gemspec by rubocop

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

Line is too long. [83/80]
Open

    raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
Severity: Minor
Found in dumpman.gemspec by rubocop

%q-literals should be delimited by ( and ).
Open

  spec.summary       = %q{gem for playing with dumps}
Severity: Minor
Found in dumpman.gemspec by rubocop

This cop enforces the consistent usage of %-literal delimiters.

Specify the 'default' key to set all preferred delimiters at once. You can continue to specify individual preferred delimiters to override the default.

Example:

# Style/PercentLiteralDelimiters:
#   PreferredDelimiters:
#     default: '[]'
#     '%i':    '()'

# good
%w[alpha beta] + %i(gamma delta)

# bad
%W(alpha #{beta})

# bad
%I(alpha beta)

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

  if spec.respond_to?(:metadata)
Severity: Minor
Found in dumpman.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

Use %q only for strings that contain both single quotes and double quotes.
Open

  spec.description   = %q{it dumps}
Severity: Minor
Found in dumpman.gemspec by rubocop

Line is too long. [90/80]
Open

  # to allow pushing to a single host or delete this section to allow pushing to any host.
Severity: Minor
Found in dumpman.gemspec by rubocop

There are no issues that match your filters.

Category
Status