Permalink
Commits on Oct 19, 2011
  1. Allow multiple filenames to be passed in to Rhino CLI

    Nicholas C. Zakas committed Oct 19, 2011
  2. Merge fix

    Nicholas C. Zakas committed Oct 19, 2011
Commits on Oct 14, 2011
  1. Merge pull request #304 from WolfgangKluge/self-test

    Output filename on error and use stricter self-tests
    valueof committed Oct 14, 2011
  2. Fix #223: scope checking

    if option funcscope is used, jshint does not complain about variables
    defined in "pseudo-scopes" like if-blocks.
    
    Signed-off-by: Anton Kovalyov <anton@kovalyov.net>
    WolfgangKluge committed with valueof Oct 10, 2011
  3. Warn about missing semicolon after "use strict" even when ASI is on.

    Closes GH-131.
    Closes GH-300.
    
    Squashed commit of the following:
    
    commit 86ed9bfb365d564f641c207aa874040f102031b2
    Author: Anton Kovalyov <anton@kovalyov.net>
    Date:   Fri Oct 14 13:11:19 2011 -0700
    
        Minor changes
    
    commit 41465e93223b131589633ba2681222b4d02e3c16
    Merge: 5c1921e b38dfcc
    Author: Anton Kovalyov <anton@kovalyov.net>
    Date:   Fri Oct 14 13:09:49 2011 -0700
    
        Merge branch '131-use-strict-and-asi' of https://github.com/WolfgangKluge/jshint into use-strict
    
    commit b38dfcc
    Author: Wolfgang Kluge <wolfgang@klugesoftware.de>
    Date:   Tue Oct 11 00:22:33 2011 +0200
    
        Warn if "use strict" has no explicit semicolon
    
        Even if option asi is on, the user gets a warning if there is no
        semicolon after "use strict" in the same line.
    
    commit 3cddc3f
    Author: Wolfgang Kluge <wolfgang@klugesoftware.de>
    Date:   Fri Oct 7 17:49:03 2011 +0200
    
        Fix #131: allow "use strict" without semicolon
    WolfgangKluge committed with valueof Oct 14, 2011
Commits on Oct 13, 2011
Commits on Oct 10, 2011
  1. Output filename on error and use stricter self-tests

    Update tests and according files to pass all tests with option
    
        bitwise
        eqeqeqe
        forin
        immed
        latedef,
        newcap (partially)
        noarg
        noempty
        nonew
        plusplus
        regexp
        undef
        strict (partially)
        trailing
        white
    on.
    WolfgangKluge committed Oct 10, 2011
Commits on Oct 9, 2011
  1. Merge pull request #298 from WolfgangKluge/parse-return

    Ignore newline on parsing return statement
    valueof committed Oct 9, 2011
  2. Merge pull request #299 from WolfgangKluge/test-helper-fix

    Fix filter function that detect "unthrown errors"
    valueof committed Oct 9, 2011
  3. Fixed option white to work together with one-line control statements.

    Also added more tests for the white options and minor styling changes.
    
    Closes GH-152
    Closes GH-283
    WolfgangKluge committed with valueof Oct 9, 2011
  4. Extend option regexdash to detect dash in the middle of a set

    The regexdash option prevents from throwing an error, if a dash is
    the last character in a character set, but not, if it's the first
    character.
    
    Before this commit, sets like [a-c-e] (which is the same as
    [a-c\-e]) are allowed, even if regexdash was not used.
    
    As mentioned in #258 (and #159 and #83) a warning should be thrown
    only, if the dash is in the middle of a set without being part of
    a character range.
    
    Closes GH-258
    Closes GH-83
    WolfgangKluge committed with valueof Oct 9, 2011
Commits on Oct 7, 2011
  1. Ignore newline on parsing return statement

    Statements like
    
        return
        var x = 2;
    
    currently raises many errors because it's interpreted as
    
        return var;
        x = 2
    
    and therefore a valid var statement is missing (which results in "undefined x")
    This commit fixes this.
    WolfgangKluge committed Oct 7, 2011
Commits on Oct 6, 2011
  1. Fixed innacurate comments

    valueof committed Oct 6, 2011
Commits on Oct 4, 2011
  1. Added links for Wolfgang Kluge

    valueof committed Oct 4, 2011
  2. Added Attribution section

    valueof committed Oct 4, 2011
  3. Merge pull request #277 from WolfgangKluge/regexp-in-case-statement

    Regexp in case expression
    valueof committed Oct 4, 2011
Commits on Oct 3, 2011
  1. Tolerate escaped multiline strings if multistr option is on.

    This commit closes GH-49 and GH-146. It adds a new option multistr
    to allow code like this:
    
    ```
    var x = "hello\
    world";
    ```
    
    It disallows any spaces between backslash and the new line so
    
    ```
    var x = "hello\
    
    world";
    ```
    
    is still disallowed. It also catches this buggy code:
    
    ```
    var x = "hello
    world";
    ```
    
    Conflicts:
    	tests/options.js
    WolfgangKluge committed with valueof Oct 3, 2011
  2. Merge pull request #268 from WolfgangKluge/detect-mixed-spaces-tabs

    Detect mixed spaces/tabs
    valueof committed Oct 3, 2011
Commits on Sep 28, 2011
  1. Merge branch 'master' into detect-mixed-spaces-tabs

    Conflicts:
    	tests/options.js
    WolfgangKluge committed Sep 28, 2011
  2. Added missing Rhino options

    Nicholas C. Zakas committed with valueof Sep 28, 2011
Commits on Sep 27, 2011
  1. Added missing Rhino options

    Nicholas C. Zakas committed Sep 27, 2011
  2. Use testHelper for tests

    Rewrite of all core-tests, so they use the testhelper (if suitable)
    WolfgangKluge committed Sep 25, 2011
  3. Use testHelper for tests

    Rewrite of all env-tests, so they use the testhelper (if suitable)
    WolfgangKluge committed Sep 25, 2011
  4. Use testHelper for tests

    Rewrite of all option-test, so they use the testhelper
    WolfgangKluge committed Sep 25, 2011
  5. Add helper class for tests

    The helper provides a way to easily write tests.
    WolfgangKluge committed Sep 25, 2011
  6. Recognize any combination of mixed spaces and tabs

    Mixed spaces and tabs are recognized by regex pattern / \t/. That is
    a single blank followed by a single tab.
    Changed to / \t|\t / so the sequence isn't relevant anymore.
    WolfgangKluge committed Sep 27, 2011