Permalink
Commits on Dec 24, 2011
  1. Fixed a typo, oops

    valueof committed Dec 24, 2011
Commits on Dec 9, 2011
  1. Change how JSHint treats ES5 accessors.

    Don't require getter *and* setter, but show a warning when setter
    is used without a corresponding getter.
    
    Fixes GH-373
    Fixes GH-374
    valueof committed Dec 9, 2011
  2. Merge pull request #375 from rondevera/fix-comma-in-members-list

    Add missing comma in members list
    valueof committed Dec 9, 2011
  3. Merge pull request #378 from dominicbarnes/master

    Adding "provides" as a global member of the CouchDB environment
    valueof committed Dec 9, 2011
  4. Merge pull request #371 from goatslacker/GH-369

    Fixes a typo in tests and refactors code per valid JSHint report (fixes GH-369)
    valueof committed Dec 9, 2011
Commits on Dec 7, 2011
  1. adding 'provides' to 'couch' env

    Dominic Barnes committed Dec 7, 2011
Commits on Dec 5, 2011
Commits on Nov 29, 2011
  1. Fix typo: eqeqeqe -> eqeqeq

    goatslacker committed Nov 29, 2011
  2. Option `smarttabs` to allow the use of SmartTabs

    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.
    valueof committed Nov 29, 2011
Commits on Nov 28, 2011
  1. Put generated files into a build directory.

    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.
    valueof committed Nov 28, 2011
  2. Adds a Makefile that builds jshint-rhino

    * 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.
    goatslacker committed with valueof Nov 28, 2011
  3. Quit parsing after unclosed regular expression.

    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.
    aparajita committed with valueof Nov 28, 2011
Commits on Nov 27, 2011
  1. Accumulate all undef errors to be processed at the very end.

    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.
    goatslacker committed with valueof Nov 27, 2011
  2. Removed unneccessary call to nospace from functionparams.

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

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

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

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

    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)
    WolfgangKluge committed Nov 24, 2011
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

    Extend options.js so more cases are covered
    WolfgangKluge committed Nov 23, 2011