3
votes

I'm writing an ember.js addon. When running ember test Ember will add generic should pass jshint tests to my test suite. That's great as far as it goes, but the javascript files from the main directory (index.js, Brocfile.js) are missing as are the files from app/**/*. As far as I can see, only files in addon/**/\ and tests/**/\ are covered.

Am I missing some obvious configuration option? Is this a bug?

1
Yes, I could do it myself. But this would mean just running jshint, not using the quite nice test case generation. [edit:] The comment I was responding to, seems to be deleted. It was suggesting gulp or grunt. - jnfingerle
It's not clear what you are trying to do here. You want the addon test suite to lint files in the consuming application? Why? - steveax
No. I don't talk about the consuming app. I'm talking about the addon, directories of the addon and the test suite of the addon. I want that to lint (jshint) all js-files that would go into the VCS (essentially all except for npm and bower dependencies). At the moment it lints some of those, but not all. My question details, which are included and which are missing. - jnfingerle

1 Answers

0
votes

No it is not a bug. That's how the ember test works.

Once there was an issue about running linter. But I didn't find any rfc about these issue.

If you want to run linting on your code base, you can use either cli or ide plugins.