Permalink
Switch branches/tags
Nothing to show
Commits on Nov 29, 2011
  1. Option `smarttabs` to allow the use of SmartTabs

    valueof committed Nov 29, 2011
    This commit adds a new option to JSHint called `smarttabs`. When
    enabled it makes JSHint tolerate tabs followed by spaces (spaces
    followed by tabs are prohibited no matter what). When disabled
    (default) JSHint will warn about any occurence of mixed tabs and
    spaces.
    
    SmartTabs: http://www.emacswiki.org/emacs/SmartTabs
    Refs GH-314 and GH-355.
    
    Thanks to Maël Nison <nison.mael@gmail.com> for the initial patch.
Commits on Nov 28, 2011
  1. Put generated files into a build directory.

    valueof committed Nov 28, 2011
    All generated files will now be placed in a `build` directory (ignored
    in the repo). I've also added make clean to empty `build` when needed.
    
    Renamed `env/jshint-rhino.js` to `env/rhino.js` because the 'jshint-'
    part seemed redundant.
  2. Adds a Makefile that builds jshint-rhino

    goatslacker authored and valueof committed Nov 28, 2011
    * Removes load(jshint) from jshint-rhino since JSHint
      is included when `make rhino` is executed.
    
    * Also adds method test to Makefile which runs tests
      using expresso.
  3. Quit parsing after unclosed regular expression.

    aparajita authored and valueof committed Nov 28, 2011
    There is a bug when JSHint returns invalid data after unclosed
    regular expression (such as simple `/`). Trivial fix includes
    returning `it('(regexp)', c)` on L1388 but that produces
    a couple of redundant errors such as `Missing semicolon.`, etc.
    
    This patch makes JSHint quit it work after encountering an
    unclosed regular expression--we can't process a file without
    making mistakes after that anyway.
Commits on Nov 27, 2011
  1. Accumulate all undef errors to be processed at the very end.

    goatslacker authored and valueof committed Nov 27, 2011
    This approach makes sure that errors caused by undef are not in
    the way of other options such as latedef. The code pushes all
    warning about undefined variables into an array and at the
    end of processing checks if any of those variables were defined
    later in the code and can be legally used due to hoisting.
    
    Fixes GH-133.
    Fixes GH-347.
    
    P.S. The only thing is that it can mess up the maxerr option but
    we need to refactor it anyway.
  2. Removed unneccessary call to nospace from functionparams.

    goatslacker authored and valueof committed Nov 27, 2011
    This call was producing duplicate whitespace errors as reported in
    GH-351.
    
    Closes GH-351.
Commits on Nov 25, 2011
  1. Change error text for /(/

    WolfgangKluge committed Nov 25, 2011
    ..from "Unclosed '/'." to "{a} unterminated regular expression group(s)."
  2. Add maxlen-test

    WolfgangKluge committed Nov 25, 2011
Commits on Nov 24, 2011
  1. Add more string tests

    WolfgangKluge committed Nov 24, 2011
    Fixes a bug in jshint where unclosed strings (at the end of the input)
    lead to infinite loops.
  2. Add string tests and more regexp tests

    WolfgangKluge committed Nov 24, 2011
    Fixes also a bug in jshint where unclosed strings and regexes are
    correctly treated as errors, but the code which raises the error
    fails to get line of nexttoken (nexttoken = null)
Commits on Nov 23, 2011
  1. Fix after rebase

    WolfgangKluge committed Nov 23, 2011
  2. Add tests for jsonmode

    WolfgangKluge committed Nov 23, 2011
  3. Add tests based on code coverage

    WolfgangKluge committed Nov 23, 2011
    Extend options.js so more cases are covered
Commits on Nov 9, 2011
  1. Adds tests for unexpected spaces' column count

    goatslacker authored and valueof committed Nov 4, 2011
    * Also fixes the other case where the column count
    is incorrect.
  2. Fixes incorrect character being returned

    goatslacker authored and valueof committed Nov 4, 2011
    * Unexpected space now returns the character where the space
    is present and needs to be removed.
  3. Pass token.character instead of token.from+token.value.length into wa…

    valueof committed Nov 9, 2011
    …rningAt when semicolon is missing.
    
    
    Fixes GH-305.
  4. Adds jQuery 1.7 library to tests

    goatslacker authored and valueof committed Nov 5, 2011