Closed thecampagnards closed 2 years ago
Great addition. Does there exist prior art, i.e. does eslint offer a similar flag?
Great addition. Does there exist prior art, i.e. does eslint offer a similar flag?
Yes they have ˋ --max-warnings` https://eslint.org/docs/latest/user-guide/command-line-interface#max-warnings I can change to that
Please change to that. Also enhances the feature. :+1:
updated + fixed lint issues
@nikku I dont understand why the it doesnt work can you help me pls ?
5) cli
should execute
bpmnlint --max-warnings=3 diagram-warnings.bpmn:
AssertionError: expected '' to deeply equal '\n\n/home/ksidorenko/workspace/bpmnlint/test/integration/cli/diagram-warnings.bpmn\n Activity_14kz74k warning Incoming flows do not join fake-join\n Activity_1b4a52y warning Incoming flows do not join fake-join\n\n✖ 2 problems (0 errors, 2 warnings)\n'
+ expected - actual
+
+
+/home/ksidorenko/workspace/bpmnlint/test/integration/cli/diagram-warnings.bpmn
+ Activity_14kz74k warning Incoming flows do not join fake-join
+ Activity_1b4a52y warning Incoming flows do not join fake-join
+
+✖ 2 problems (0 errors, 2 warnings)
it seems that the output is not taken into account
Fixed + incorporated some nit-picks into https://github.com/bpmn-io/bpmnlint/pull/92.
Hello, I suggest this pr to
exit 1
when a warning appears. I added a flag--failure-on-warning
or-f
to activate it when you want. We need it to force the failure of our CI in case of warnings. Thx!