Xo: `--open` should open the first error, not warning

Created on 4 May 2017  路  5Comments  路  Source: xojs/xo

I have warnings in many projects and it's annoying that it opens at the warning instead of the error. If there are no errors, it should go to the first warning. I think we could just sort the errors first.

Should not be done until https://github.com/sindresorhus/xo/pull/218 is merged.

enhancement help wanted

All 5 comments

if its OK, I would like to try implementing this.

Go ahead :)

Welcome to Github, @tdeschryver! :)

@sindresorhus Just to be sure, it should only open the warnings if there are no errors?
@Qix- thanks! :)

If there are no errors, it should go to the first warning

I take that as a yes @tdeschryver :).

Was this page helpful?
0 / 5 - 0 ratings