3 files inspected, 22 offenses detected:

 

app/controllers/application_controller.rb - 1 offense

Line #1convention: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
class ApplicationController < ActionController::Base

 

app/controllers/books_controller.rb - 14 offenses

Line #1convention: Style/Documentation: Missing top-level documentation comment for class BooksController.
class BooksController < ApplicationController
Line #1convention: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
class BooksController < ApplicationController
Line #2convention: Style/SymbolArray: Use %i or %I for an array of symbols.
  before_action :set_book, only: [:show, :edit, :update, :destroy]
Line #12convention: Style/EmptyMethod: Put empty method definitions on a single line.
  def show ...
Line #21convention: Style/EmptyMethod: Put empty method definitions on a single line.
  def edit ...
Line #31convention: Layout/LineLength: Line is too long. [121/120]
        format.html { redirect_to @book, notice: 'Book was successfully created.' } # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Line #45convention: Layout/LineLength: Line is too long. [121/120]
        format.html { redirect_to @book, notice: 'Book was successfully updated.' } # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Line #59convention: Layout/LineLength: Line is too long. [121/120]
      format.html { redirect_to books_url, notice: 'Book was successfully destroyed.' } # aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Line #64convention: Layout/EmptyLinesAroundAccessModifier: Keep a blank line before and after private.
  private
Line #66convention: Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
    def set_book
Line #66convention: Layout/IndentationConsistency: Inconsistent indentation detected.
    def set_book ...
Line #70convention: Layout/LineLength: Line is too long. [121/120]
    # Never trust parameters from the scary internet, only allow the allow list through. aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Line #71convention: Layout/IndentationWidth: Use 2 (not 4) spaces for indentation.
    def book_params
Line #71convention: Layout/IndentationConsistency: Inconsistent indentation detected.
    def book_params ...

 

app/models/book.rb - 7 offenses

Line #1convention: Style/Documentation: Missing top-level documentation comment for class Book.
class Book < ActiveRecord::Base
Line #1convention: Style/FrozenStringLiteralComment: Missing frozen string literal comment.
class Book < ActiveRecord::Base
Line #2convention: Naming/MethodName: Use snake_case for method names.
  def someMethod
Line #3warning: Lint/UselessAssignment: Useless assignment to variable - foo.
    foo = bar = baz
Line #3warning: Lint/UselessAssignment: Useless assignment to variable - bar. Did you mean baz?
    foo = bar = baz
Line #4convention: Style/RescueModifier: Avoid using rescue in its modifier form.
    Regexp.new(/\A<p>(.*)<\/p>\Z/m).match(full_document)[1] rescue full_document
Line #4convention: Style/RegexpLiteral: Use %r around regular expression.
    Regexp.new(/\A<p>(.*)<\/p>\Z/m).match(full_document)[1] rescue full_document