私のプロジェクトには無視しようとしているフォルダがたくさんあります。残念ながら、phpDocumentorはいくつかのフォルダにアクセスしようとしており、「許可が拒否されました」というエラーが表示されています。phpDocumentorフォルダ - このファイルの要約はありません
Parsing C:\Users\Public\xampp\htdocs\select_user.php
PHP Warning: file_get_contents(C:\Users\Public\xampp\htdocs\sql): failed to open stream: Permission denied in C:\Program Files\PHPStorm\PhpStorm 2017.2\plugins\phpdoc\phpDocumentor-2.9.0\vendor\phpdocumentor\reflection\src\phpDocumentor\Reflection\FileReflector.php on line 138
Parsing C:\Users\Public\xampp\htdocs\sql
Parsing C:\Users\Public\xampp\htdocs\table_plan.php
PHP Warning: file_get_contents(C:\Users\Public\xampp\htdocs\tasks): failed to open stream: Permission denied in C:\Program Files\PHPStorm\PhpStorm 2017.2\plugins\phpdoc\phpDocumentor-2.9.0\vendor\phpdocumentor\reflection\src\phpDocumentor\Reflection\FileReflector.php on line 138
PHP Warning: file_get_contents(C:\Users\Public\xampp\htdocs\vendor): failed to open stream: Permission denied in C:\Program Files\PHPStorm\PhpStorm 2017.2\plugins\phpdoc\phpDocumentor-2.9.0\vendor\phpdocumentor\reflection\src\phpDocumentor\Reflection\FileReflector.php on line 138
Parsing C:\Users\Public\xampp\htdocs\table_users.php
Parsing C:\Users\Public\xampp\htdocs\tasks
Warning: file_get_contents(C:\Users\Public\xampp\htdocs\tasks): failed to open stream: Permission denied in C:\Program Files\PHPStorm\PhpStorm 2017.2\plugins\phpdoc\phpDocumentor-2.9.0\vendor\phpdocumentor\reflection\src\phpDocumentor\Reflection\FileReflector.php on line 138
Parsing C:\Users\Public\xampp\htdocs\unlock_appraisal.php
Parsing C:\Users\Public\xampp\htdocs\util.php
Parsing C:\Users\Public\xampp\htdocs\vendor
これらのディレクトリをphpdoc.dist.xml
で除外しようとしています。
<?xml version="1.0" encoding="UTF-8" ?>
<phpdoc>
<parser>
<target>docs/phpdoc</target>
</parser>
<transformer>
<target>docs/phpdoc</target>
</transformer>
<files>
<directory>*</directory>
<file>*</file>
<ignore>test/*</ignore>
<ignore>assets/*</ignore>
<ignore>doc/*</ignore>
<ignore>docs/*</ignore>
<ignore>examples/*</ignore>
<ignore>html_sources/*</ignore>
<ignore>logs/*</ignore>
<ignore>vendor/*</ignore>
<ignore>vendor/</ignore>
<ignore>debug</ignore>
<ignore>_do_this_for_troubleshooting/*</ignore>
<ignore>*.pdf</ignore>
<ignore>*.md</ignore>
<ignore>*.json</ignore>
<ignore>*.lock</ignore>
<ignore>*.xml</ignore>
</files>
</phpdoc>
ignoreリストは除外されたフォルダ内のアイテムが免除されるように動作しますが、フォルダ自体は除外されています。したがって、phpDocumentorはフォルダをファイルとして読み込み、エラーを引き起こします。これらは最終的なHTMLでも見ることができます。私は適切にフォルダを無視するにはどうすればよい
?私は--ignore sqlbuddy/,docs/
を使用しようとする可能性があることを知っていますが、設定でignore
XMLタグを使用するのと同じことは間違いありません。また、1つの中央ファイルで無視リストを2つの別々の場所(コマンドに1つ、config XMLに1つ)を持たせるよりもずっと多くしています。私の質問を介して、他の時間を読んだ後、私は問題がこれに関係している可能性があることがわかり
:
<directory>*</directory>
<file>*</file>
私は倍の束を読んだ興味深いconfig documentationもありますが、私の特定の問題を解決するようには見えません。
返信いただきありがとうございます!すべてのソースコードを別のディレクトリに移動しました。私はこれを長い間したいと思っていましたが、私のコードのいくつかが壊れてしまっています。ありがたいことに私はハードコードされた文字列を持っていないので、パスを調整するのは比較的簡単でした。 私はあなたが提案した設定変更をしようとしているので、私はソースコードディレクトリだけを含めます。私は報告して答えを受け入れるでしょう。 – RubbelDieKatz
チャームのように働いた。ありがとうございました! – RubbelDieKatz