Skip to content
This repository has been archived by the owner on Apr 17, 2020. It is now read-only.
Marco Otte-Witte edited this page Jun 27, 2013 · 28 revisions

Excellent finds the nasty lines in your code. It implements a comprehensive set of checks for possibly buggy parts of your app that would otherwise make it into your repo and eventually to the production server.

Example

Assume you have the following class definition,

class ShoppingBasket < ActiveRecord::Base

  def initialize(items = [])
    self.items = items
  end

end

then Excellent will immediately show you the bad parts about it:

$ excellent shopping_basket.rb 

  Excellent result:

  test.rb
    * Line   1: ShoppingBasket does not validate any attributes.
    * Line   1: ShoppingBasket defines initialize method.
    * Line   1: ShoppingBasket does not specify attr_accessible.

  Found 3 warnings.

Checks

Excellent has the following checks:

Rails specific Checks

Excellent also has some checks specific to Ruby on Rails: