tailor icon indicating copy to clipboard operation
tailor copied to clipboard

Add an option to fail builds on warnings

Open YANOUSHek opened this issue 7 years ago • 3 comments

This is not exactly an issue but a missing feature. I'd like to set up my Xcode so that any message from tailor fails the build (even a warning). Can't find an option to do this.

Can we add this?

YANOUSHek avatar Mar 02 '17 14:03 YANOUSHek

@YANOUSHek, is --max-severity the option you are looking for?

adityatrivedi avatar Mar 06 '17 06:03 adityatrivedi

@adityatrivedi nope, this does not allow to fail the build when there's only a warning detected by tailor.

Setting it to error [...] also fails the build in Xcode, if any errors are reported

With max-severity set to warning, all violation messages are warnings and the Xcode build will never fail.

There's no option to make any message (no matter if it's a warning or error) fail the Xcode build.

YANOUSHek avatar Mar 06 '17 09:03 YANOUSHek

Got it, thanks for clarifying the enhancement you’re looking for. Ideally Xcode’s “treat warnings as errors” would allow you to do exactly that, but it seems to only work for compiler warnings and not Build Phase Run Script output. We envision this being a separate command-line option. Our team is pretty time constrained at the moment, a pull request to add a --strict flag would be welcome.

adityatrivedi avatar Mar 23 '17 06:03 adityatrivedi