Closed romit07 closed 3 weeks ago
You should be able to simply pass fail_on_errors : true
as an argument:
swiftlint.lint_files(inline_mode: true, fail_on_error: true) { |violation| ... }
I have created #199 to reflect and test the expected behavior of this combination of arguments
@romit07 . Can you confirm this has been fixed regarding #199 ?
if we are not using any violation filter, passing fail_on_errors : true is simple
swiftlint.lint_files fail_on_error: true
But I am using custom filtering of violations like this:
Seems like there is now way to pass fail_on_errors : true in this way