rails/rails

end at 34, 10 is not aligned with if at 30, 45.
Open

          end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Use 2 (not -33) spaces for indentation.
Open

            "app/mailers/#{namespaced_path}/application_mailer.rb"

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

end at 257, 8 is not aligned with if at 253, 34.
Open

        end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Use 2 (not -24) spaces for indentation.
Open

          block
        else
          VariantCollector.new(@variant)

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

end at 320, 8 is not aligned with if at 315, 20.
Open

        end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Use 2 (not -10) spaces for indentation.
Open

          action_path = normalize_action_path(action)

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

end at 24, 10 is not aligned with if at 20, 14.
Open

          end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

end at 46, 10 is not aligned with if at 42, 14.
Open

          end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

end at 79, 10 is not aligned with if at 69, 14.
Open

          end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Use 2 (not -2) spaces for indentation.
Open

            Mime::Type.lookup($1.strip.downcase)

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

Use 2 (not -2) spaces for indentation.
Open

            [content_mime_type]

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

Use 2 (not -2) spaces for indentation.
Open

            Array(Mime[parameters[:format]])

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

end at 374, 10 is not aligned with if at 372, 29.
Open

          end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Use 2 (not -17) spaces for indentation.
Open

            ".#{$&}"
          end

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

end at 71, 6 is not aligned with if at 65, 17.
Open

      end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Use 2 (not -9) spaces for indentation.
Open

        TRUSTED_PROXIES

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

end at 1916, 12 is not aligned with if at 1912, 17.
Open

            end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Use 2 (not -3) spaces for indentation.
Open

              options.delete(:as)

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end

end at 271, 12 is not aligned with if at 266, 26.
Open

            end

This cop checks whether the end keywords are aligned properly.

Three modes are supported through the AlignWith configuration parameter:

If it's set to keyword (which is the default), the end shall be aligned with the start of the keyword (if, class, etc.).

If it's set to variable the end shall be aligned with the left-hand-side of the variable assignment, if there is one.

If it's set to start_of_line, the end shall be aligned with the start of the line where the matching keyword appears.

Example:

# good
# keyword style
variable = if true
           end

# variable style
variable = if true
end

# start_of_line style
puts(if true
end)

Use 2 (not -12) spaces for indentation.
Open

              args << model

This cops checks for indentation that doesn't use two spaces.

Example:

class A
 def test
  puts 'hello'
 end
end
Severity
Category
Status