Permalink
Commits on Nov 15, 2012
  1. Parsing of optional assignments.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 15, 2012
Commits on Nov 14, 2012
  1. Removed the `--pre` switch from the README.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 14, 2012
  2. Version 0.0.2.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 14, 2012
  3. Parsing of expander assignments.

    The ruby-lint parser is now capable of parsing code such as `*numbers = 10` and
    `*numbers, number = 10`
    
    This commit fixes #6.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 14, 2012
  4. Parsing of yield keywords and expand operators.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 14, 2012
  5. Rewrote the parsing of mass/splat assignments.

    When parsing mass assignments RubyLint::Parser now returns an array of
    AssignmentToken instances instead of a single instance containing multiple sub
    instances.
    
    Another change is that the parser also handles the task of properly assigning
    the values to the corresponding variables when mass assigning variables. This
    also works when splat assigning such as the following example:
    
        number, *this_is_an_empty_array = 10
    
    This would result in an AST similar to the following:
    
        [
            #<RubyLint::Token::AssignmentToken
            @name="number"
            @value=#<RubyLint::Token::Token @type=:integer @value="10"> ...>,
    
            #<RubyLint::Token::AssignmentToken
            @name="this_is_an_empty_array"
            @value=nil ...>,
        ]
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 14, 2012
  6. Parsing of super/defined? keywords.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 14, 2012
  7. Started working on support for `super`.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 14, 2012
Commits on Nov 13, 2012
  1. Parsing of case statements without statements.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 13, 2012
  2. Parsing of assignments to "star variables".

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 13, 2012
  3. Parsing defined? calls and for loops.

    RubyLint::Parser is now capable of parsing calls to defined?() as well as being
    able to parse for loops that only specify one variable to create for each
    iteration.
    
    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 13, 2012
  4. Rake task for testing stdlib.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 13, 2012
  5. Corrected formatting/naming in the README.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 13, 2012
  6. Version 0.0.1a1.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 13, 2012
  7. 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>
    YorickPeterse committed Nov 13, 2012
  8. Renamed left over references to "rlint".

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

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

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

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

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse committed Nov 13, 2012
  13. 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>
    YorickPeterse committed Nov 13, 2012
Commits on Nov 12, 2012
  1. Usage and design in the README.

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

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

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

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

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse 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>
    YorickPeterse 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>
    YorickPeterse committed Nov 12, 2012
Commits on Nov 9, 2012
  1. Minor code cleanups.

    Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>
    YorickPeterse 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>
    YorickPeterse committed Nov 9, 2012
  3. Cleaned up Rlint::Definition.

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

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

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