-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Break vipgoci_run() into multiple functions #207
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpcs scanning turned up:
This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpcs scanning turned up:
🚫 1 error
This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpcs scanning turned up:
🚫 1 error
This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation.
Dismissing review as all inline comments are obsolete by now
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpcs scanning turned up:
This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phpcs scanning turned up:
🚫 1 error
This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation.
The
vipgoci_run()
function is getting long and difficult to understand. It needs to be broken into multiple functions.This pull request will move the various configuration of options, sanity checking and eventual scanning performed in
vipgoci_run()
into multiple functions. Each newly created function will have specific focus; for example, PHP Linting functionality will be configured and run from two different functions.This has already been done in the
vip-go-compatibility-scanner
project, see here -- a similar solution is being implemented here.This resolves #192.
TODO:
vipgoci_run()
into multiple functions grouped by functionality.declare(strict_types=1);
forvip-go-ci.php
,main.php
,latest-release.php
,github-commit-status.php
[ Define variable types, declare strict types, WordPress coding standard #157 ]PHPDoc
comments for new or updated functions (main code only).