This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
dust /
| name | age | message | |
|---|---|---|---|
| |
Dusters | Tue Jun 03 12:47:11 -0700 2008 | [kevinclark] |
| |
LICENSE | Mon Jun 02 16:55:09 -0700 2008 | [kevinclark] |
| |
README | Wed Sep 17 10:35:18 -0700 2008 | [kevinclark] |
| |
Rakefile | Sun Sep 14 15:23:06 -0700 2008 | [kevinclark] |
| |
lib/ | Wed Sep 17 10:24:41 -0700 2008 | [kevinclark] |
| |
spec/ | Wed Sep 17 10:24:41 -0700 2008 | [kevinclark] |
README
Ruby lint. Sorta. http://github.com/kevinclark/dust/wikis ## Examples require 'lib/dust' # Detect unused variabls def unused_lvar a = 1 1 + 2 end d = Dust::LocalVariableDuster.new(Object, :unused_lvar) d.dust! d.warnings # => [#<Dust::Warnings::UnusedVariable:0x86970 @variable=:a>] # Catch yield's without a check for block_given? def no_conditional_for_block_given yield end d = Dust::BlockDuster.new(Object, :no_conditional_for_block_given) d.dust! d.warnings # => [#<Dust::Warnings::UnprotectedBlock:0x614dd8 @yes_branch=nil, @condition=nil, @no_branch=nil>] # Find useless branches def silly_if_else 1 == 2 ? true : false end d = Dust::BranchDuster.new(Object, :silly_if_else) d.dust! d.warnings # => [#<Dust::Warnings::UselessBranch:0x5f80e8 @yes_branch=s(:true), @no_branch=s(:false)>]





