Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Dec 24, 2011
  1. Anton Kovalyov

    Fixed a typo, oops

    valueof authored
  2. Anton Kovalyov
Commits on Dec 9, 2011
  1. Anton Kovalyov

    Change how JSHint treats ES5 accessors.

    valueof authored
    Don't require getter *and* setter, but show a warning when setter
    is used without a corresponding getter.
    
    Fixes GH-373
    Fixes GH-374
  2. Anton Kovalyov

    Merge pull request #375 from rondevera/fix-comma-in-members-list

    valueof authored
    Add missing comma in members list
  3. Anton Kovalyov
  4. Josh Perez Anton Kovalyov
  5. Anton Kovalyov

    Merge pull request #378 from dominicbarnes/master

    valueof authored
    Adding "provides" as a global member of the CouchDB environment
  6. Anton Kovalyov

    Merge pull request #371 from goatslacker/GH-369

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

    Dominic Barnes authored
Commits on Dec 5, 2011
  1. Ron DeVera
Commits on Nov 29, 2011
  1. Josh Perez
  2. Josh Perez
  3. Anton Kovalyov
  4. Anton Kovalyov

    Option `smarttabs` to allow the use of SmartTabs

    valueof authored
    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. Anton Kovalyov

    Put generated files into a build directory.

    valueof authored
    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. Josh Perez Anton Kovalyov

    Adds a Makefile that builds jshint-rhino

    goatslacker authored valueof committed
    * 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. Aparajita Fishman Anton Kovalyov

    Quit parsing after unclosed regular expression.

    aparajita authored valueof committed
    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.
  4. Josh Perez Anton Kovalyov

    Include raw property in the 'Too many errors.' message.

    goatslacker authored valueof committed
  5. Josh Perez Anton Kovalyov

    Show a warning on ambigious returns. Fixes #332.

    goatslacker authored valueof committed
Commits on Nov 27, 2011
  1. Josh Perez
  2. Anton Kovalyov
  3. Josh Perez Anton Kovalyov

    Accumulate all undef errors to be processed at the very end.

    goatslacker authored valueof committed
    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.
  4. Josh Perez Anton Kovalyov

    Removed unneccessary call to nospace from functionparams.

    goatslacker authored valueof committed
    This call was producing duplicate whitespace errors as reported in
    GH-351.
    
    Closes GH-351.
Commits on Nov 25, 2011
  1. Wolfgang Kluge
  2. Wolfgang Kluge
  3. Wolfgang Kluge

    Change error text for /(/

    WolfgangKluge authored
    ..from "Unclosed '/'." to "{a} unterminated regular expression group(s)."
  4. Wolfgang Kluge
  5. Wolfgang Kluge
  6. Wolfgang Kluge

    Add maxlen-test

    WolfgangKluge authored
Commits on Nov 24, 2011
  1. Wolfgang Kluge

    Add more string tests

    WolfgangKluge authored
    Fixes a bug in jshint where unclosed strings (at the end of the input)
    lead to infinite loops.
  2. Wolfgang Kluge

    Add string tests and more regexp tests

    WolfgangKluge authored
    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. Wolfgang Kluge

    Fix after rebase

    WolfgangKluge authored
  2. Wolfgang Kluge

    Add tests for jsonmode

    WolfgangKluge authored
  3. Wolfgang Kluge

    Add tests based on code coverage

    WolfgangKluge authored
    Extend options.js so more cases are covered
  4. Wolfgang Kluge
Something went wrong with that request. Please try again.