rails/rails

end at 32, 10 is not aligned with if at 28, 45.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

          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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            "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 255, 8 is not aligned with if at 251, 34.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

          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 301, 8 is not aligned with if at 296, 20.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

          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 23, 10 is not aligned with if at 19, 14.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

          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 45, 10 is not aligned with if at 41, 14.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

          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 78, 10 is not aligned with if at 68, 14.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

          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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            [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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            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 355, 10 is not aligned with if at 353, 29.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

          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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            ".#{$&}"
          end

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

Example:

class A
 def test
  puts 'hello'
 end
end

end at 69, 6 is not aligned with if at 63, 17.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

      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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

        TRUSTED_PROXIES

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

Example:

class A
 def test
  puts 'hello'
 end
end

end at 1901, 12 is not aligned with if at 1897, 17.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

              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 269, 12 is not aligned with if at 264, 26.
Open
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

            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
  • Open
  • Confirmed
  • Invalid
  • Wontfix
Cancel

              args << model

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

Example:

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