Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Travis builds should fail when scss-lint errors #374

Closed
jglovier opened this issue Mar 17, 2016 · 5 comments
Closed

Travis builds should fail when scss-lint errors #374

jglovier opened this issue Mar 17, 2016 · 5 comments
Labels

Comments

@jglovier
Copy link
Member

Expected behavior: When your styles fail the scss-linter, the build should fail in Travis.

Actual behavior: When your styles fail the scss-linter, the Travis build still passes.

Steps to reproduce: Branch, add some styles that don't pass the scss-linter, push your branch, and open a pull request to view the Travis build info.

You can paste the following style declaration into any stylesheet to produce scss-lint errors:

div#urmom > div.something.something span.wutwut + b.supdawg {
  width:100%;
  display:inline; 
  position:absolute; 
  color:rgba(0, 0, 0, 0.10)
}

I think if we can get the scss-lint to fail the ember build, that should produce the expected behavior in Travis, too. The whole point is to help enforce use of the linter and scaling our SCSS well.

cc @jkleinsc

@billybonks
Copy link
Contributor

the pure node linter addon, that i linked previously generates a test suite for the Linting that should fail on travis

https://github.com/sir-dunxalot/broccoli-sass-lint/blob/master/index.js#L234

@jkleinsc
Copy link
Member

If we are going to move to stylelint via #443, we should address this issue there.

@jglovier
Copy link
Member Author

@billybonks yeah, we're planning to move to Stylelint asap to 🔥 Ruby as a dependency, and because it turns out Stylelint is even better (and faster) than scss-lint.

@billybonks
Copy link
Contributor

https://www.npmjs.com/package/ember-cli-style-lint this solves this issue

@billybonks billybonks mentioned this issue Jun 2, 2016
15 tasks
@jglovier
Copy link
Member Author

jglovier commented Jun 3, 2016

Closed in #488.

@jglovier jglovier closed this as completed Jun 3, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants