dvinciguerra/business-br

View on GitHub
business-br.gemspec

Summary

Maintainability
Test Coverage

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

Gem::Specification.new do |spec|
  spec.name          = 'business-br'
  spec.license       = 'MIT'
  spec.version       = Business::BR::VERSION
  spec.authors       = ['Daniel Vinciguerra']
Severity: Minor
Found in business-br.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.

required_ruby_version (2.7, declared in business-br.gemspec) and TargetRubyVersion (2.1, declared in .rubocop.yml) should be equal.
Open

  spec.required_ruby_version = '>= 2.7'
Severity: Minor
Found in business-br.gemspec by rubocop

Checks that required_ruby_version of gemspec and TargetRubyVersion of .rubocop.yml are equal. Thereby, RuboCop to perform static analysis working on the version required by gemspec.

Example:

# When `TargetRubyVersion` of .rubocop.yml is `2.3`.

# bad
Gem::Specification.new do |spec|
  spec.required_ruby_version = '>= 2.2.0'
end

# bad
Gem::Specification.new do |spec|
  spec.required_ruby_version = '>= 2.4.0'
end

# good
Gem::Specification.new do |spec|
  spec.required_ruby_version = '>= 2.3.0'
end

# good
Gem::Specification.new do |spec|
  spec.required_ruby_version = '>= 2.3'
end

# good
Gem::Specification.new do |spec|
  spec.required_ruby_version = ['>= 2.3.0', '< 2.5.0']
end

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

  spec.summary       = %q[
    Classes for validations and conversions to use in brazilian ruby projects.
  ]
Severity: Minor
Found in business-br.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)

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

  spec.description = %q[
    Business::BR is a namespace to place all validations like CPF CNPJ CEP and
    some other things to be used in a brazilian ruby project.
  ]
Severity: Minor
Found in business-br.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 %q only for strings that contain both single quotes and double quotes.
Open

  spec.summary       = %q[
    Classes for validations and conversions to use in brazilian ruby projects.
  ]
Severity: Minor
Found in business-br.gemspec by rubocop

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

  spec.description = %q[
    Business::BR is a namespace to place all validations like CPF CNPJ CEP and
    some other things to be used in a brazilian ruby project.
  ]
Severity: Minor
Found in business-br.gemspec by rubocop

There are no issues that match your filters.

Category
Status