Permalink
Commits on Nov 13, 2012
  1. Version 0.0.1a1.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 13, 2012
  2. Default values for token/definition attributes.

    Various attributes, such as RubyLint::Token::BlockToken#parameters would not
    have a defualt value other than `nil`. This would cause code that relies on
    these attributes to have non nil values to blow up.
    
    Another example are line numbers and column numbers. Before this commit these
    were set to `nil` by default meaning that any type of mathematical expression
    would fail since NilClass does not respond to `>`, `-` and so on.
    
    This commit resolves the problem described in issue #2 but I'll leave it open
    for a bit longer so I can test some other stdlib code to make sure ruby-lint
    doesn't blow up again.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 13, 2012
  3. Renamed left over references to "rlint".

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 13, 2012
  4. Updated the YARD configuration file.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 13, 2012
  5. Renamed Rlint to RubyLint.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 13, 2012
  6. Added the --pre switch to the installation guide.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 13, 2012
  7. Updated a require call in the README.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 13, 2012
  8. Renamed files/folders to "ruby-lint".

    Various files and folders have been renamed so that their names match the
    Rubygem's name.
    
    This commit fixes #3.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 13, 2012
Commits on Nov 12, 2012
  1. Usage and design in the README.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 12, 2012
  2. Added a TODO section to the README.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 12, 2012
  3. Task for generating the MANIFEST file.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 12, 2012
  4. Updated the Rake for the new gem name.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 12, 2012
  5. Renamed the Gem and updated the README.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 12, 2012
  6. CLI interface without Shebang.

    The Rlint CLI interface has been rewritten and no longe relies on Shebang.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 12, 2012
  7. Method validation.

    Rlint::Analyze::MethodValidation is a new class that is used to validate method
    calls. In the future it will also validate specified parameters and such.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 12, 2012
Commits on Nov 9, 2012
  1. Minor code cleanups.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 9, 2012
  2. Use setter for assigning definition tokens.

    When creating a new instance of Rlint::Definition the setter method #token=
    should be used to set the token as this removes some duplicate code.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 9, 2012
  3. Cleaned up Rlint::Definition.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 9, 2012
  4. Removed Rlint::Callback#options.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 9, 2012
Commits on Nov 7, 2012
  1. Warnings for shadowing local variables.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 7, 2012
Commits on Nov 6, 2012
  1. Merged Rlint::Scope and Rlint::Definition.

    These two classes served almost identical purposes.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 6, 2012
  2. rbenv uses .rbenv-version instead of .ruby-version

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 6, 2012
Commits on Nov 5, 2012
  1. Errors for undefined variables.

    A new class has been introduced: Rlint::Analyze::UndefinedVariables. This class
    is used to check for the use of undefined variables and will add errors for
    each occurence.
    
    While working on this system I realized that separating data in
    Rlint::Definition and Rlint::Scope gets really confusing and requires a few
    hoops to work around various issues. These two classes will be merged into
    Rlint::Scope in the following commits.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 5, 2012
  2. Clarify the gem name on Rubygems.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 5, 2012
Commits on Nov 4, 2012
  1. Warnings for unused variables.

    Adding warnings for unused variables is handled by the class
    Rlint::Analyze::UnusedVariables in combination with two new helper modules:
    Rlint::Helper::Scoping and Rlint::Helper::ScopeResolver.
    
    The new approach of keeping track of unused variables means that
    Rlint::Token::Token#used and Rlint::Token::Token#reported are no longer needed
    and thus these attributes have been removed.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 4, 2012
  2. Including/extending modules into classes.

    The new version of Rlint::Analyze::Definitions is now able to build a list of
    definitions that were added by including or extending a module into a class.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 4, 2012
Commits on Nov 1, 2012
  1. Definition list for modules.

    The new version of Rlint::Analyze::Definitions is now capable of building a
    list of defined modules and their associated data.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Nov 1, 2012
Commits on Oct 31, 2012
  1. Rewriting Rlint::Analyze::Definitions from scratch

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Oct 31, 2012
Commits on Oct 29, 2012
  1. Share data between callback classes.

    Callback classes bound to the same instance of Rlint::Iterator can now share
    data by storing it in a Hash that is stored in the `@storage` instance
    variable.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Oct 29, 2012
Commits on Oct 24, 2012
  1. Process iterator callback classes in sequence.

    Instead of calling the callback method for each callback class for the current
    node Rlint::Iterator will now process an *entire* AST before moving on to the
    next class.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Oct 24, 2012
Commits on Oct 23, 2012
  1. Warn for unused variables.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Oct 23, 2012
  2. Assign VariableTokens to variables in a scope.

    Instead of saving the value of a variable during assignment the entire
    VariableToken instance is saved.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Oct 23, 2012
Commits on Oct 17, 2012
  1. Don't add errors for default global variables.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    committed Oct 17, 2012