PHP-CodeBrowser 未正确遵循 checkstyle.xml 中的路径
我已经设置了 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 "/**" 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)