PHP-CodeBrowser 未正确遵循 checkstyle.xml 中的路径

发布于 2024-08-21 22:40:04 字数 1283 浏览 7 评论 0原文

我已经设置了 phpUnderControl 并且一切都运行良好,除了我的一些项目没有在 PHP-CodeBrowser 选项卡中没有得到任何输出。

如果我手动运行该命令,我会得到:

phpcb --log projects/devvo/build/logs --source projects/devvo/source --output projects/devvo/build/php-code-browser

Generating PHP_CodeBrowser files
PHP-CodeBrowser Error:
File projects/devvo/source/CLV2/webroot/maintenance.php does not exist!

Script took 2.64733099937 seconds to execute

我可以跟踪 PHP-CodeSniffer 的 checkstyle.xml 输出。它包含:

 <file name="/opt/cruisecontrol-bin-2.8.3/projects/devvo/source/modules/project-creator/source/CLV2/webroot/maintenance.php">
  <error line="2" column="1" severity="error" message="You must use &quot;/**&quot; style comments for a file comment" source="PEAR.Commenting.FileCommentSniff"/>
 </file>

我无法弄清楚为什么 phpcb 会删除一半的路径。我猜测这是某种形式的路径替换(基于我的 --source 路径),因为 source 在路径中出现两次而存在问题。请注意,缺少的路径部分是指定的源路径和最后一个之间的位。

我在 phpcb 中发现错误了吗?如果是这样,我可以在哪里举报?我发现的最接近 phpcb 所在位置的是 上的链接phpUnderControl 发布页面 不幸的是,该页面链接到 phpUnit github 中的损坏 URL。

I've set up phpUnderControl and it's all working very well, except that for a few projects that I have aren't getting any output in the PHP-CodeBrowser tab.

If I run the command manually I get:

phpcb --log projects/devvo/build/logs --source projects/devvo/source --output projects/devvo/build/php-code-browser

Generating PHP_CodeBrowser files
PHP-CodeBrowser Error:
File projects/devvo/source/CLV2/webroot/maintenance.php does not exist!

Script took 2.64733099937 seconds to execute

Which I can track into the checkstyle.xml output of PHP-CodeSniffer. It contains:

 <file name="/opt/cruisecontrol-bin-2.8.3/projects/devvo/source/modules/project-creator/source/CLV2/webroot/maintenance.php">
  <error line="2" column="1" severity="error" message="You must use "/**" style comments for a file comment" source="PEAR.Commenting.FileCommentSniff"/>
 </file>

What I can't work out is why phpcb is dropping half of the path. I'm guessing that it's some form of path replacement (based on my --source path) having issues with the fact that source appears in the path twice. Note that the section of the path that is missing is the bit between the source path specified and the last source.

Have I found a bug in phpcb? If so, where can I report it? The closest I have found to where phpcb lives is the link on the phpUnderControl release page which unfortunately links to a broken URL in the phpUnit github.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

凉宸 2024-08-28 22:40:04
You can try to contact them at <http://www.mayflower.de/en/contact>
You can try to contact them at <http://www.mayflower.de/en/contact>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文