cequel/cequel

View on GitHub
lib/cequel/metal/writer.rb

Summary

Maintainability
A
0 mins
Test Coverage

Unnecessary utf-8 encoding comment.
Open

# -*- encoding : utf-8 -*-
Severity: Minor
Found in lib/cequel/metal/writer.rb by rubocop

Do not use parallel assignment.
Open

        @statements, @bind_vars = [], []
Severity: Minor
Found in lib/cequel/metal/writer.rb by rubocop

Checks for simple usages of parallel assignment. This will only complain when the number of variables being assigned matched the number of assigning variables.

Example:

# bad
a, b, c = 1, 2, 3
a, b, c = [1, 2, 3]

# good
one, two = *foo
a, b = foo()
a, b = b, a

a = 1
b = 2
c = 3

Do not use parallel assignment.
Open

        @data_set, @options, @block = data_set, options, block
Severity: Minor
Found in lib/cequel/metal/writer.rb by rubocop

Checks for simple usages of parallel assignment. This will only complain when the number of variables being assigned matched the number of assigning variables.

Example:

# bad
a, b, c = 1, 2, 3
a, b, c = [1, 2, 3]

# good
one, two = *foo
a, b = foo()
a, b = b, a

a = 1
b = 2
c = 3

Add an empty line after magic comments.
Open

module Cequel
Severity: Minor
Found in lib/cequel/metal/writer.rb 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

There are no issues that match your filters.

Category
Status