Conversation

vmcj

This version will not break on errors or warnings.

@vmcjvmcj force-pushed the master branch 4 times, most recently from 136737c to d21a108 Compare February 23, 2021 21:08
.gitignore Outdated
lib/**/*

.idea
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nitpick: would be good to add a newline here.

@@ -17,6 +17,9 @@ export async function runOnBlame(files: string[]): Promise<void> {
core.getInput('phpcs_path', { required: true })
);

const dontFailOnError =
core.getInput('fail_on_errors') == 'false' ||
core.getInput('fail_on_errors') === 'off';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really great to use double negatives in variable names, but given that dontFailOnWarning already exists, meh.
Although given that this is later only used as !dontFailOnError I think it's actually better to simply name it failOnError.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree but the original author already had this, I only intended to add a "copy" which works the same as the warning option.

const failOnError = core.getInput('fail_on_errors');
if (failOnError == 'false' || failOnError === 'off') {
args.push('--runtime-set ignore_errors_on_exit 1');
}
const failOnWarning = core.getInput('fail_on_warnings');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such consistency by the original author...

thenabeel and others added 3 commits February 23, 2021 22:25
Updated the npm packages. This commit can be removed when the upstream
action works again. Afterwards run `npm install && npm run all`.
@vmcjvmcj requested a review from eldering February 23, 2021 21:44

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on . Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.