-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
'grunt jshint:server' ignores deep server/api files #463
Comments
I agree with 2, but do you know the files/line numbers for the |
@kingcody |
@bkapicka, sorry I actually meant: what were the offending files? The ones that had late definitions. |
@kingcody my mistake - it was line 87 of the template thing.controller.js:
|
Ok, great. I'll see about getting a PR together to address that. Were there any other files that did not pass? Btw; it's my 'opinion' that the less overrides in the linter the better, barring globals. Just my opinion though |
Thanks for the PR. And my apologies - missed two latedef errors. The full set of problems pre changes to jshintrc are below. Re overrides: Completely agree but since the
|
I wouldn't mind getting rid of It makes sense to me to have the public api of a module closer to the top for easier scanning of a file, and private methods near the bottom. |
@kingcody Nice find! That sounds perfect. |
Changes: - Update jshint task in `Gruntfile.js` to include `serverTest` - Add `server/.jshintrc-spec` that extends `server/.jshintrc` with spec globals - Use `"latedef": "nofunc"` instead of `"latedef": true` in `server/.jshintrc` - Add assertion for `jshint` task in generator tests for `defaultOptions` - Fix pre exsisting lint errors in `server` and `client` - Change `getEmail()` in `client/app/account/settings/settings.controller` to use `user` arg and not `$scope.user` Closes angular-fullstack#463, angular-fullstack#486
Are files nested in the server/api purposefully excluded from jshint:serve?
If not, proposed minor updates outlined below:
Updated Gruntfile:
to
This causes the boilerplate specs to fail on 'grunt jshint:server'. Two additional changes to address:
"latedef": true
from Server .jshintrc/*global describe, it, before, beforeEach, after, afterEach */
and
/*jshint expr:true */
to thing.spec.js and user.spec.jsThe text was updated successfully, but these errors were encountered: