Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Nov 13, 2012
  1. @YorickPeterse

    Updated a require call in the README.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  2. @YorickPeterse

    Renamed files/folders to "ruby-lint".

    YorickPeterse authored
    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>
Commits on Nov 12, 2012
  1. @YorickPeterse

    Usage and design in the README.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  2. @YorickPeterse

    Added a TODO section to the README.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  3. @YorickPeterse

    Task for generating the MANIFEST file.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  4. @YorickPeterse

    Updated the Rake for the new gem name.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  5. @YorickPeterse

    Renamed the Gem and updated the README.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  6. @YorickPeterse

    CLI interface without Shebang.

    YorickPeterse authored
    The Rlint CLI interface has been rewritten and no longe relies on Shebang.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  7. @YorickPeterse
  8. @YorickPeterse

    Method validation.

    YorickPeterse authored
    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>
Commits on Nov 9, 2012
  1. @YorickPeterse

    Minor code cleanups.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  2. @YorickPeterse

    Use setter for assigning definition tokens.

    YorickPeterse authored
    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>
  3. @YorickPeterse

    Cleaned up Rlint::Definition.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  4. @YorickPeterse

    Removed Rlint::Callback#options.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Commits on Nov 7, 2012
  1. @YorickPeterse

    Warnings for shadowing local variables.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Commits on Nov 6, 2012
  1. @YorickPeterse
  2. @YorickPeterse

    Merged Rlint::Scope and Rlint::Definition.

    YorickPeterse authored
    These two classes served almost identical purposes.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  3. @YorickPeterse

    rbenv uses .rbenv-version instead of .ruby-version

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Commits on Nov 5, 2012
  1. @YorickPeterse

    Errors for undefined variables.

    YorickPeterse authored
    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>
  2. @YorickPeterse

    Clarify the gem name on Rubygems.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Commits on Nov 4, 2012
  1. @YorickPeterse

    Warnings for unused variables.

    YorickPeterse authored
    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>
  2. @YorickPeterse

    Including/extending modules into classes.

    YorickPeterse authored
    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>
Commits on Nov 1, 2012
  1. @YorickPeterse

    Definition list for modules.

    YorickPeterse authored
    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>
Commits on Oct 31, 2012
  1. @YorickPeterse

    Rewriting Rlint::Analyze::Definitions from scratch

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Commits on Oct 29, 2012
  1. @YorickPeterse

    Share data between callback classes.

    YorickPeterse authored
    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>
Commits on Oct 24, 2012
  1. @YorickPeterse

    Process iterator callback classes in sequence.

    YorickPeterse authored
    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>
Commits on Oct 23, 2012
  1. @YorickPeterse

    Warn for unused variables.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  2. @YorickPeterse

    Assign VariableTokens to variables in a scope.

    YorickPeterse authored
    Instead of saving the value of a variable during assignment the entire
    VariableToken instance is saved.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Commits on Oct 17, 2012
  1. @YorickPeterse

    Don't add errors for default global variables.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  2. @YorickPeterse

    Commandline executable.

    YorickPeterse authored
    Rlint now has a basic commandline executable that allows users to lint files as
    well as customizing parts of Rlint (e.g. the formatter to use).
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  3. @YorickPeterse

    Benchmark parsing parser.rb instead of scope.rb.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  4. @YorickPeterse

    Merged regular and "mod" statement events.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  5. @YorickPeterse

    Parsing of tenary operators.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  6. @YorickPeterse

    Script for benchmarking memory usage.

    YorickPeterse authored
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
  7. @YorickPeterse

    Inherit constants inside namespaces.

    YorickPeterse authored
    When parsing code that is defined inside a namespace the various constants of
    the parent namespace segments should be inherited. Take for example the
    following code:
    
        module A
          module B
            def self.example
    
            end
          end
        end
    
        module A
          module C
            B.example
          end
        end
    
    Here `A::B` is called inside `A::C` but without the full namespace path being
    specified. Rlint is now capable of dealing with code such as this.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
Something went wrong with that request. Please try again.