znamenica/dneslov

View on GitHub
lib/tasks/import.rake

Summary

Maintainability
Test Coverage

Expression at 8, 31 should be on its own line.
Open

            true; end;end;end;end
Severity: Minor
Found in lib/tasks/import.rake by rubocop

This cop checks whether the end statement of a do..end block is on its own line.

Example:

# bad
blah do |i|
  foo(i) end

# good
blah do |i|
  foo(i)
end

# bad
blah { |i|
  foo(i) }

# good
blah { |i|
  foo(i)
}

Expression at 8, 23 should be on its own line.
Open

            true; end;end;end;end
Severity: Minor
Found in lib/tasks/import.rake by rubocop

This cop checks whether the end statement of a do..end block is on its own line.

Example:

# bad
blah do |i|
  foo(i) end

# good
blah do |i|
  foo(i)
end

# bad
blah { |i|
  foo(i) }

# good
blah { |i|
  foo(i)
}

Space missing after semicolon.
Open

            true; end;end;end;end
Severity: Minor
Found in lib/tasks/import.rake by rubocop

Checks for semicolon (;) not followed by some kind of space.

Example:

# bad
x = 1;y = 2

# good
x = 1; y = 2

Unused block argument - t. If it's necessary, use _ or _t as an argument name to indicate that it won't be used.
Open

         task :descriptions, [:calendary, :language_code] => :environment do |t, args|
Severity: Minor
Found in lib/tasks/import.rake by rubocop

This cop checks for unused block arguments.

Example:

# bad

do_something do |used, unused|
  puts used
end

do_something do |bar|
  puts :foo
end

define_method(:foo) do |bar|
  puts :baz
end

Example:

#good

do_something do |used, _unused|
  puts used
end

do_something do
  puts :foo
end

define_method(:foo) do |_bar|
  puts :baz
end

Prefer single-quoted strings when you don't need string interpolation or special symbols.
Open

         desc "Fix root_id in names"
Severity: Minor
Found in lib/tasks/import.rake by rubocop

Checks if uses of quotes match the configured preference.

Example: EnforcedStyle: single_quotes (default)

# bad
"No special symbols"
"No string interpolation"
"Just text"

# good
'No special symbols'
'No string interpolation'
'Just text'
"Wait! What's #{this}!"

Example: EnforcedStyle: double_quotes

# bad
'Just some text'
'No special chars or interpolation'

# good
"Just some text"
"No special chars or interpolation"
"Every string in #{project} uses double_quotes"

Use %i or %I for an array of symbols.
Open

         task :descriptions, [:calendary, :language_code] => :environment do |t, args|
Severity: Minor
Found in lib/tasks/import.rake by rubocop

This cop can check for array literals made up of symbols that are not using the %i() syntax.

Alternatively, it checks for symbol arrays using the %i() syntax on projects which do not want to use that syntax.

Configuration option: MinSize If set, arrays with fewer elements than this value will not trigger the cop. For example, a MinSize of3` will not enforce a style on an array of 2 or fewer elements.

Example: EnforcedStyle: percent (default)

# good
%i[foo bar baz]

# bad
[:foo, :bar, :baz]

Example: EnforcedStyle: brackets

# good
[:foo, :bar, :baz]

# bad
%i[foo bar baz]

Space missing after semicolon.
Open

            true; end;end;end;end
Severity: Minor
Found in lib/tasks/import.rake by rubocop

Checks for semicolon (;) not followed by some kind of space.

Example:

# bad
x = 1;y = 2

# good
x = 1; y = 2

Space missing after semicolon.
Open

            true; end;end;end;end
Severity: Minor
Found in lib/tasks/import.rake by rubocop

Checks for semicolon (;) not followed by some kind of space.

Example:

# bad
x = 1;y = 2

# good
x = 1; y = 2

Extra empty line detected at block body end.
Open


            true; end;end;end;end
Severity: Minor
Found in lib/tasks/import.rake by rubocop

This cops checks if empty lines around the bodies of blocks match the configuration.

Example: EnforcedStyle: empty_lines

# good

foo do |bar|

  # ...

end

Example: EnforcedStyle: noemptylines (default)

# good

foo do |bar|
  # ...
end

Expression at 8, 27 should be on its own line.
Open

            true; end;end;end;end
Severity: Minor
Found in lib/tasks/import.rake by rubocop

This cop checks whether the end statement of a do..end block is on its own line.

Example:

# bad
blah do |i|
  foo(i) end

# good
blah do |i|
  foo(i)
end

# bad
blah { |i|
  foo(i) }

# good
blah { |i|
  foo(i)
}

Expression at 8, 19 should be on its own line.
Open

            true; end;end;end;end
Severity: Minor
Found in lib/tasks/import.rake by rubocop

This cop checks whether the end statement of a do..end block is on its own line.

Example:

# bad
blah do |i|
  foo(i) end

# good
blah do |i|
  foo(i)
end

# bad
blah { |i|
  foo(i) }

# good
blah { |i|
  foo(i)
}

There are no issues that match your filters.

Category
Status