steventwheeler/clli

View on GitHub
Rakefile

Summary

Maintainability
Test Coverage

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

namespace :generate do
  task :city_cache do
    data = {}
    CSV.foreach(input_file) do |row|
      prefix, city, state = row
Severity: Minor
Found in Rakefile 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.

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

  task :city_cache do
    data = {}
    CSV.foreach(input_file) do |row|
      prefix, city, state = row
      prefix = prefix.strip
Severity: Minor
Found in Rakefile 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.

%w-literals should be delimited by [ and ].
Open

    output_file = CLLI::YAMLData.real_path(%w(clli data cities.yml))
Severity: Minor
Found in Rakefile 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)

There are no issues that match your filters.

Category
Status