cequel/cequel

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

Summary

Maintainability
A
0 mins
Test Coverage

Indent ) the same as the start of the line where ( is.
Open

        )
Severity: Minor
Found in lib/cequel/metal/incrementer.rb by rubocop

This cops checks the indentation of hanging closing parentheses in method calls, method definitions, and grouped expressions. A hanging closing parenthesis means ) preceded by a line break.

Example:

# good: when x is on its own line, indent this way
func(
  x,
  y
)

# good: when x follows opening parenthesis, align parentheses
a = b * (x +
         y
        )

# bad
def func(
  x,
  y
  )
end

Add an empty line after magic comments.
Open

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

Unnecessary utf-8 encoding comment.
Open

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

There are no issues that match your filters.

Category
Status