Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

fix(build): Linting error at gulpfile.js #1139

Merged
merged 1 commit into from
Jan 15, 2016
Merged

Conversation

simison
Copy link
Member

@simison simison commented Jan 15, 2016

Fixes an error occurring when running gulp:

/mean/gulpfile.js
  199:22  error  A space is required after '{'   object-curly-spacing
  199:42  error  A space is required before '}'  object-curly-spacing

Fixes an error occurring when running `gulp`:
```bash
/mean/gulpfile.js
  199:22  error  A space is required after '{'   object-curly-spacing
  199:42  error  A space is required before '}'  object-curly-spacing
```
@mleanos
Copy link
Member

mleanos commented Jan 15, 2016

LGTM. Thanks, Mikael.

@codydaig
Copy link
Member

LGTM

Why is the build passing then if there's a linting error?

@simison
Copy link
Member Author

simison commented Jan 15, 2016

@codydaig It indeed does pass — odd enough.

It's unclear from which linter this error is coming from.

@mleanos
Copy link
Member

mleanos commented Jan 15, 2016

I looked into it a little.. Couldn't tell which linter was causing the errors either. However, the errors don't cause a crash; even when starting the application.

When running grunt the lint errors aren't thrown. So there must be a difference in the linters that are being ran between Grunt & Gulp. I'll look into this further.

I didn't see the errors show up in the build log for the merge that introduced this. https://travis-ci.org/meanjs/mean/builds/102415414

What is initiating the linting & test tasks during the builds?

@mleanos
Copy link
Member

mleanos commented Jan 15, 2016

It appears to be eslint that's throwing the errors.

Throws errors:

gulp eslint

Does not:

gulp jshint

It really is odd though because the eslint task is being ran during the build. I confirmed that the task was run (and didn't throw an error) in the build I shared above. Perhaps Travis build ignores such errors? I think I remember seeing jshint errors reflected in the Travis builds.

@simison
Copy link
Member Author

simison commented Jan 15, 2016

I didn't dive deeper into this — simply cloned fresh repo, did npm install and gulp. Saw the error, fixed it. :-)

Glad you're at it!

@mleanos
Copy link
Member

mleanos commented Jan 15, 2016

Thanks ;) Just wanted to share my findings since it was confusing why the build passed.

If needed we can open a new issue to continue the conversation, but it's not relevant to this fix.

@codydaig
Copy link
Member

Let's move this to a new issue. I'll merge this in.

codydaig added a commit that referenced this pull request Jan 15, 2016
fix(build): Linting error at gulpfile.js
@codydaig codydaig merged commit aa42cc0 into meanjs:master Jan 15, 2016
@ilanbiala ilanbiala added this to the 0.5.0 milestone Jan 15, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants