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

Handling warnings or errors #42

Closed
tgfjt opened this issue May 11, 2015 · 3 comments
Closed

Handling warnings or errors #42

tgfjt opened this issue May 11, 2015 · 3 comments

Comments

@tgfjt
Copy link

tgfjt commented May 11, 2015

Can we result unsuccessfully with errors?(and successfully with warnings as well)
Do you have a plan to be the build to fail on errors?

I mean:

if (options === '2') {
  result.error(
      messages.unexpected,
      { node: decl }
    )
  })
} else if (options === '1') {
  result.warn(
      messages.unexpected,
      { node: decl }
    )
  })
}

https://github.com/CSSLint/csslint/blob/master/src/core/CSSLint.js#L89

@MoOx
Copy link
Contributor

MoOx commented May 11, 2015

We do not plan to throw exception for now. We might handle log/error levels later.

@MoOx
Copy link
Contributor

MoOx commented May 11, 2015

See #26

@MoOx MoOx closed this as completed May 11, 2015
@tgfjt
Copy link
Author

tgfjt commented May 11, 2015

I see. Thank you. 👍

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

No branches or pull requests

2 participants