- 1.1 First setup the
ENV
variables under Environment - 1.2 Authorize the project specific Codeship ssh key on the server. (under General)
phpenv local 7.2
composer test |
phpenv local 7.2 | |
composer install --prefer-source --no-interaction |
FILE: ...rojects/myproject/myfile.php | |
---------------------------------------------------------------------- | |
FOUND 4 ERRORS AFFECTING 4 LINES | |
---------------------------------------------------------------------- | |
34 | ERROR | [x] Expected 1 spaces before closing bracket; 0 found | |
36 | ERROR | All output should be run through an escaping function | |
| | (see the Security sections in the WordPress Developer | |
| | Handbooks), found '$image_src'. | |
90 | ERROR | [x] String "Create a Configuration File" does not require | |
| double quotes; use single quotes instead |
"scripts": { | |
"post-install-cmd": "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs", | |
"post-update-cmd" : "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs", | |
"test": [ | |
"phpcs --report=full --colors -p --standard=web/app/themes/mytheme/codesniffer-ruleset.xml --ignore=*/vendor/*,*/node_modules/* web/app/themes/mytheme/ --extensions=php" | |
] | |
} |
"scripts": { | |
"post-install-cmd": "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs", | |
"post-update-cmd" : "./vendor/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs" | |
} |
"require": { | |
"wp-coding-standards/wpcs": "^0.14.0", | |
} |
composer require wp-coding-standards/wpcs |
"require-dev": { | |
"squizlabs/php_codesniffer": "^3.0.2" | |
} |
<?php | |
function my_columns_filter( $columns ) { | |
unset($columns['wpseo-focuskw']); | |
unset($columns['wpseo-metadesc']); | |
unset($columns['wpseo-score']); | |
unset($columns['wpseo-title']); | |
return $columns; | |
} |