Byte4/acebook-byte4

View on GitHub
app/controllers/comments_controller.rb

Summary

Maintainability
A
0 mins
Test Coverage

Showing 6 of 6 total issues

Use a guard clause instead of wrapping the code inside a conditional expression.
Open

if @comment.user_id == current_user.id

Space missing inside }.
Open

format.html { redirect_to authenticate_root_path}

Missing top-level class documentation comment.
Open

class CommentsController < ApplicationController

Extra empty line detected at class body beginning.
Open

 
before_action :set_post

Extra empty line detected at class body end.
Open

 
end

Missing magic comment # frozen_string_literal: true.
Open

class CommentsController < ApplicationController

There are no issues that match your filters.

Category
Status