cequel/cequel

View on GitHub
lib/cequel/record/finders.rb

Summary

Maintainability
A
0 mins
Test Coverage

Add an empty line after magic comments.
Open

module Cequel
Severity: Minor
Found in lib/cequel/record/finders.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

Align .map with column_names on line 82.
Open

          .map { |name| "#{name}: #{name}" }.join(', ')
Severity: Minor
Found in lib/cequel/record/finders.rb by rubocop

This cop checks the indentation of the method name part in method calls that span more than one line.

Example: EnforcedStyle: aligned

# bad
while myvariable
.b
  # do something
end

# good
while myvariable
      .b
  # do something
end

# good
Thing.a
     .b
     .c

Example: EnforcedStyle: indented

# good
while myvariable
  .b

  # do something
end

Example: EnforcedStyle: indentedrelativeto_receiver

# good
while myvariable
        .a
        .b

  # do something
end

# good
myvariable = Thing
               .a
               .b
               .c

Unnecessary utf-8 encoding comment.
Open

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

There are no issues that match your filters.

Category
Status