Remove references to apigen from configuration files

Commit d6bd82865c removed apigen from
WooCommerce core repository as we are moving it to its own repository (https://github.com/woocommerce/woocommerce-api-docs). This
commit removes the apigen from configuration files. In most cases, it is
just removing the apigen directory from the exclude list of things like
PHPCS and Code Climate.
This commit is contained in:
Rodrigo Primo 2019-06-28 10:20:30 -03:00
parent ea63bb6c7b
commit bb78174c33
7 changed files with 1 additions and 11 deletions

View File

@ -18,7 +18,6 @@ ratings:
- "includes/*"
exclude_paths:
- "tests/"
- "apigen/"
- "sample-data/"
- "i18n/"
- "includes/api/legacy/"

1
.gitattributes vendored
View File

@ -1,5 +1,4 @@
/.* export-ignore
apigen* export-ignore
CODE_OF_CONDUCT.md export-ignore
CHANGELOG.txt export-ignore
composer.* export-ignore

3
.gitignore vendored
View File

@ -24,9 +24,6 @@ none
# Windows junk
Thumbs.db
# ApiGen
/wc-apidocs/
# Behat/CLI Tests
tests/cli/installer
tests/cli/composer.phar

View File

@ -23,7 +23,6 @@ checks:
verify_property_names: false
filter:
excluded_paths:
- apigen/
- sample-data/
- i18n/
- includes/api/legacy/

View File

@ -197,7 +197,6 @@ module.exports = function( grunt ) {
options: {
potFilename: 'woocommerce.pot',
exclude: [
'apigen/.*',
'vendor/.*',
'tests/.*',
'tmp/.*'
@ -230,7 +229,6 @@ module.exports = function( grunt ) {
files: {
src: [
'**/*.php', // Include all files
'!apigen/**', // Exclude apigen/
'!includes/libraries/**', // Exclude libraries/
'!node_modules/**', // Exclude node_modules/
'!tests/**', // Exclude tests/
@ -305,7 +303,6 @@ module.exports = function( grunt ) {
dist: {
src: [
'**/*.php', // Include all php files.
'!apigen/**',
'!includes/api/legacy/**',
'!includes/libraries/**',
'!node_modules/**',

View File

@ -4,7 +4,6 @@
<!-- Exclude paths -->
<exclude-pattern>tests/cli/</exclude-pattern>
<exclude-pattern>apigen/</exclude-pattern>
<exclude-pattern>includes/libraries/</exclude-pattern>
<exclude-pattern>includes/legacy/</exclude-pattern>
<exclude-pattern>includes/api/legacy/</exclude-pattern>

View File

@ -2,7 +2,7 @@
if [[ ${RUN_PHPCS} == 1 ]]; then
CHANGED_FILES=`git diff --name-only --diff-filter=ACMR $TRAVIS_COMMIT_RANGE | grep \\\\.php | awk '{print}' ORS=' '`
IGNORE="tests/cli/,apigen/,includes/libraries/,includes/api/legacy/"
IGNORE="tests/cli/,includes/libraries/,includes/api/legacy/"
if [ "$CHANGED_FILES" != "" ]; then
echo "Running Code Sniffer."