Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
fix finder for exclude file
Browse files Browse the repository at this point in the history
  • Loading branch information
SenseiTarzan committed Dec 3, 2023
1 parent 14ba82b commit 4502f2f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run PHP-CS-Fixer PMMP
run: php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff --ansi
run: "rm -fr .php-cs-fixer.cache && php-cs-fixer fix --config=.php-cs-fixer.php --dry-run --diff --ansi"

- name: Run PHP-CS-Fixer SYMPLY
run: php-cs-fixer fix --config=.php-cs-fixer-symply.php --dry-run --diff --ansi
run: "rm -fr .php-cs-fixer.cache && php-cs-fixer fix --config=.php-cs-fixer-symply.php --dry-run --diff --ansi"
6 changes: 1 addition & 5 deletions .php-cs-fixer-symply.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

$finder = PhpCsFixer\Finder::create()
->in(__DIR__ . '/symply')
->in(__DIR__ . '/build/symply')
->exclude(__DIR__ . '/src')
->exclude(__DIR__ .'/tests')
->exclude(__DIR__ . '/build')
->exclude(__DIR__ . '/tools');
->in(__DIR__ . '/build/symply');

return (new PhpCsFixer\Config)
->setRiskyAllowed(true)
Expand Down
5 changes: 2 additions & 3 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
->in(__DIR__ . '/tests')
->in(__DIR__ . '/tools')
->exclude( __DIR__ . '/symply')
->notPath( 'build/symply')
->notPath('tests/symply')
->notPath('plugins/DevTools')
->notName('PocketMine.php');
->notName('PocketMine.php')
->notName('generate-symply-yml-property-consts.php');

return (new PhpCsFixer\Config)
->setRiskyAllowed(true)
Expand Down
21 changes: 0 additions & 21 deletions build/symply/generate-symply-yml-property-consts.php
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
<?php

/*
*
* _____ _
* / ___| | |
* \ `--. _ _ _ __ ___ _ __ | |_ _
* `--. \ | | | '_ ` _ \| '_ \| | | | |
* /\__/ / |_| | | | | | | |_) | | |_| |
* \____/ \__, |_| |_| |_| .__/|_|\__, |
* __/ | | | __/ |
* |___/ |_| |___/
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* @author Symply Team
* @link http://www.symplymc.com/
*
*
*/

declare(strict_types=1);

Expand Down

0 comments on commit 4502f2f

Please sign in to comment.