Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 67 lines (57 sloc) 2.203 kb
c81a6c3 @kevinclark Update README to reflect move to: http://github.com/kevinclark/nitpick/
authored
1 ******************************************************************************
2 *** This software is now called 'nitpick' and is located at:
3 ***
4 *** http://github.com/kevinclark/nitpick/tree/master
5 ***
6 *** This was done to avoid clashing with another ruby project called dust
7 ***
8 *** - Kevin Clark 3/18/09
9 ******************************************************************************
10
85a0f8d @kevinclark Really basic unused lvar detection.
authored
11 Ruby lint. Sorta.
df089c6 @kevinclark Update README
authored
12
ea1e627 @kevinclark Update README to point to wiki
authored
13 http://github.com/kevinclark/dust/wikis
14
bfebce7 @kevinclark Update README, cleanup warning messages
authored
15
16 Clio:dust kev$ ./bin/dust spec/fixtures/block_badness.rb \
ef77b8a @kevinclark Update README
authored
17 > spec/fixtures/branch_badness.rb \
18 > spec/fixtures/method_badness.rb \
19 > spec/fixtures/rescue_badness.rb \
20 > spec/fixtures/local_variable_badness.rb
21 ./spec/fixtures/branch_badness.rb:20: warning: found = in conditional, should be ==
22 Fixtures::BlockBadness
23 no_conditional_for_block_given
24 - A block is being yielded to without a check for block_given?
25 simple_conditional_without_check
26 - A block is being yielded to without a check for block_given?
bfebce7 @kevinclark Update README, cleanup warning messages
authored
27
28 Fixtures::BranchBadness
3f75d62 @kevinclark Fix spacing on README
authored
29 branch_returning_identical_things
30 - The branches of 'if (true)' are identical.
ef77b8a @kevinclark Update README
authored
31 branch_returning_true_or_false
32 - No need for an if. Just return '(1 == 2)' as a boolean.
3f75d62 @kevinclark Fix spacing on README
authored
33 branch_with_assignment_as_condition
34 - An assigment is being used as a condition: (a = 1)
35 - The variable :a is unused.
bfebce7 @kevinclark Update README, cleanup warning messages
authored
36
37 Fixtures::LocalVariableBadness
ef77b8a @kevinclark Update README
authored
38 anonymous_args
39 - The method :anonymous_args is empty.
40 block_arg_unused
41 - The argument :block is unused.
42 lvar_shadowed
43 - One or more variables are being shadowed (x)
44 lvar_shadowed_many_block_vars
45 - One or more variables are being shadowed (x)
3f75d62 @kevinclark Fix spacing on README
authored
46 rescue_to_variable
47 - The variable :e is unused.
48 simple_unused_arg
49 - The argument :other is unused.
50 unused_arg
51 - The argument :arg is unused.
ef77b8a @kevinclark Update README
authored
52 unused_lasgn
53 - The variable :bar is unused.
bfebce7 @kevinclark Update README, cleanup warning messages
authored
54
ef77b8a @kevinclark Update README
authored
55 Fixtures::MethodBadness
56 empty_method
57 - The method :empty_method is empty.
bfebce7 @kevinclark Update README, cleanup warning messages
authored
58
59 Fixtures::RescueBadness
ef77b8a @kevinclark Update README
authored
60 rescue_exception
3f75d62 @kevinclark Fix spacing on README
authored
61 - A rescue is capturing Object or Exception, which may hide errors.
62 rescue_nil
63 - A rescue is returning "nil" directly and may not handle an error.
ef77b8a @kevinclark Update README
authored
64 rescue_object
3f75d62 @kevinclark Fix spacing on README
authored
65 - A rescue is capturing Object or Exception, which may hide errors.
bfebce7 @kevinclark Update README, cleanup warning messages
authored
66
Something went wrong with that request. Please try again.