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/*" - "includes/*"
exclude_paths: exclude_paths:
- "tests/" - "tests/"
- "apigen/"
- "sample-data/" - "sample-data/"
- "i18n/" - "i18n/"
- "includes/api/legacy/" - "includes/api/legacy/"

1
.gitattributes vendored
View File

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

3
.gitignore vendored
View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
if [[ ${RUN_PHPCS} == 1 ]]; then if [[ ${RUN_PHPCS} == 1 ]]; then
CHANGED_FILES=`git diff --name-only --diff-filter=ACMR $TRAVIS_COMMIT_RANGE | grep \\\\.php | awk '{print}' ORS=' '` 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 if [ "$CHANGED_FILES" != "" ]; then
echo "Running Code Sniffer." echo "Running Code Sniffer."