Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly claiming functions are unused #2282

Closed
Wilfred opened this issue Mar 29, 2015 · 3 comments
Closed

Incorrectly claiming functions are unused #2282

Wilfred opened this issue Mar 29, 2015 · 3 comments

Comments

@Wilfred
Copy link

Wilfred commented Mar 29, 2015

/* jshint strict:false, unused:true, undef:false */
(function() {
    function main() {
        helperFunc();

    }

    window.main = main;

    function helperFunc() {
    }
})();

Produces the following error:

$ jshint ~/scratch/badapp.js 
/home/wilfred/scratch/badapp.js: line 10, col 14, 'helperFunc' is defined but never used.

1 error
$ jshint --version
jshint v2.6.3
@ghost
Copy link

ghost commented Apr 19, 2015

👍 The last version this has worked correctly is 2.5.

@lukeapage
Copy link
Member

duplicate/related to #2191

@lukeapage
Copy link
Member

Fixed in the next release (after 2.8.0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants