Skip to content

Update Runner to allow error return code to be set#36

Closed
hugorodgerbrown wants to merge 1 commit intoqltysh-archive:masterfrom
yunojuno:issue_35_error_return_code
Closed

Update Runner to allow error return code to be set#36
hugorodgerbrown wants to merge 1 commit intoqltysh-archive:masterfrom
yunojuno:issue_35_error_return_code

Conversation

@hugorodgerbrown
Copy link

In certain circumstances (e.g. CI builds) you may not want
to return a non-zero return code from the Runner.run(), as
this may have unintended side-effects. This change allows
the return code to be set through an environment
variable called CODECLIMATE_ERROR_RETURN_CODE,
which defaults to 1 (the existing behaviour).

Fix for issue #35

In certain circumstances (e.g. CI builds) you may not want
to return a non-zero return code from the Runner.run(), as
this may have unintended side-effects. This change allows
the return code to be set through an environment
variable called CODECLIMATE_ERROR_RETURN_CODE,
which defaults to 1 (the existing behaviour).

Fix for issue #35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant