-
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
Apply WP CS and variable types to final files #272
Conversation
…Pixel API service.
…repo_commit_id_validate_format()
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:
🚫 5 errors
This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation.
Scan run detail
Software versions
Options file (
|
PHP lint optionsPHP lint files enabled:
Lint modified files only:
Directories not PHP linted:
SVG configurationSVG scanning enabled:
Auto-approval configurationAuto-approvals enabled:
Non-functional changes auto-approved:
Auto-approval DB enabled:
Auto-approved file-types:
|
PHPCS configurationPHPCS scanning enabled:
PHPCS severity level:
Standard(s) used:
Runtime set:
Custom sniffs included:
Custom sniffs excluded:
Directories not PHPCS scanned:
|
Dismissing review as all inline comments are obsolete by now
No issues were found to report when scanning latest commit (commit-ID: dd24d9e) This bot provides automated PHP linting and PHPCS scanning. For more information about the bot and available customizations, see our documentation. Scan run detail
|
This pull request will resolve #157 by applying WordPress Coding Standards and specifying variable types to files in the main code that was missing this. Also included is updates to a number of automated tests and small formatting changes.
TODO:
ap-svg-files.php
file-validation.php
git-repo.php
github-api.php
misc.php
options.php
other-web-services.php
vipgoci_gitrepo_commit_id_validate_format()
to validate commit-ID strings.tests/integration/OptionsReadRepoFileTest.php
tests/unit/VipgociOptionsBoolHandleTest.php
. Renamed totests/unit/OptionsBoolHandleTest.php
as well.tests/integration/GitRepoSubmoduleFilePathGetTest.php
tests/integration/GitRepoRepoOkTest.php
. Extended test to failure condition as well.tests/integration/ApSvgFilesTest.php
tests/integration/A01StatsStatsPerFileTest.php
tests/integration/SvgScanScanSingleFileTest.php
tests/integration/PhpcsScanSingleFileTest.php
tests/integration/OptionsReadRepoSkipFilesTest.php
tests/integration/MainRunInitOptionsRepoOptionsTest.php
tests/integration/GitRepoRepoFetchCommittedFileTest.php
tests/unit/GitRepoCommitIdVerifyTest.php
for functionvipgoci_gitrepo_commit_id_validate_format()
tests/integration/GitRepoGitVersionTest.php
PHPDoc
comments for new or updated functions (main code only; for VIP)This resolves #157.