Skip to content
Commits on Dec 31, 2011
  1. @valueof

    Merge branch 'es5-duplicate-accessors' of https://github.com/Wolfgang…

    …Kluge/jshint into WolfgangKluge-es5-duplicate-accessors
    valueof committed Dec 30, 2011
Commits on Dec 30, 2011
  1. @valueof
  2. @valueof
  3. @WolfgangKluge

    Extend pull request #401

    Remove "Don't make functions within a loop." on getters.
    It's only thrown on getters and thus not consistent. Since it's not
    thrown on setters nor on simple object properties, I removed it here.
    
    Don't force "value" as parameter name of setters (see #373).
    
    Extend tests (coverage).
    WolfgangKluge committed Dec 30, 2011
Commits on Dec 28, 2011
  1. @WolfgangKluge
Commits on Dec 26, 2011
  1. @valueof

    Fixed a typo in a comment doc

    valueof committed Dec 26, 2011
  2. @valueof

    Correctly identify duplicate object properties.

    JSHint was incorrectly identifying duplicate properties because of
    numerous unsafe assumptions such as that setters always follow getters
    and others.
    
    This patch removes these assumptions and makes sure that we understand
    that 'get x, set x is okay' but 'get x, x' is not.
    
    + Tests for duplicate members and a regression test for the
      aforementioned bug.
    
    This is a response to #382 and a faulty merge
    63382c7.
    valueof committed Dec 26, 2011
  3. @valueof

    Revert "Merge pull request #382 from fmate14/getset" because tests we…

    …re breaking.
    
    This reverts commit 63382c7, reversing
    changes made to 5aa015e.
    valueof committed Dec 26, 2011
Commits on Dec 24, 2011
  1. @valueof

    Merge pull request #382 from fmate14/getset

    Do not allow to duplicate a setter.
    valueof committed Dec 24, 2011
  2. @valueof

    Merge pull request #385 from WolfgangKluge/383-regexdash

    Fix for #383 (option regexdash)
    valueof committed Dec 24, 2011
  3. @valueof

    Fixed a typo, oops

    valueof committed Dec 23, 2011
  4. @valueof
Commits on Dec 14, 2011
  1. @WolfgangKluge

    Fix for #383 (option regexdash)

    WolfgangKluge committed Dec 14, 2011
  2. Do not allow to duplicate a setter.

    Máté FARKAS committed Dec 14, 2011
Commits on Dec 9, 2011
  1. @valueof

    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. @valueof

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

    Add missing comma in members list
    valueof committed Dec 9, 2011
  3. @valueof
  4. @goatslacker @valueof
  5. @valueof

    Merge pull request #378 from dominicbarnes/master

    Adding "provides" as a global member of the CouchDB environment
    valueof committed Dec 9, 2011
  6. @valueof

    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 6, 2011
Commits on Dec 5, 2011
  1. @rondevera
Commits on Nov 29, 2011
  1. @goatslacker
  2. @goatslacker

    Fix typo: eqeqeqe -> eqeqeq

    goatslacker committed Nov 29, 2011
  3. @valueof
  4. @valueof

    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 28, 2011
Commits on Nov 28, 2011
  1. @valueof

    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 27, 2011
  2. @goatslacker @valueof

    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 27, 2011
  3. @aparajita @valueof

    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 27, 2011
  4. @goatslacker @valueof
  5. @goatslacker @valueof
Commits on Nov 27, 2011
  1. @goatslacker
  2. @valueof
  3. @goatslacker @valueof

    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 26, 2011
  4. @goatslacker @valueof

    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 26, 2011
Something went wrong with that request. Please try again.