[英]What alternatives are there for PHPLint that run under Windows?
I just finished a little 5000-line PHP application and are now going into testing and debugging. 我刚刚完成了一个5000行的PHP应用程序,现在要进行测试和调试。 A short while before the end I stumbled upon PHPLint.
不久之前,我偶然发现了PHPLint。 I really liked the idea - with some special comments I can specify variable types and the tool then checks my code for all kinds of mistakes.
我真的很喜欢这个主意-通过一些特殊的注释,我可以指定变量类型,然后该工具检查我的代码中是否存在各种错误。 Neat.
整齐。 I thought that at the end of the development I would comment my code and run PHPLint on it.
我认为在开发结束时,我将注释我的代码并在其上运行PHPLint。
Unfortunately I ran into a little problem - PHPLint isn't compilable under Windows. 不幸的是,我遇到了一个小问题-PHPLint在Windows下无法编译。 Well, it is, but only with Cygwin, and I don't want to install THAT thing again.
是的,但是只有Cygwin,我不想再安装该东西。 Nor do I want to get a virtual machine with Linux or something.
我也不想获得带有Linux或其他东西的虚拟机。 Of course, I will, if there will be no other choices, but first I'd like to explore other options.
当然,如果没有其他选择,我会的,但是首先,我想探索其他选择。
So - are there any alternatives for PHPLint that run under Windows? 那么-在Windows下可以运行PHPLint的替代方法吗? I mean in the sense of code-checking.
我的意思是说代码检查。 I don't care about the documentation-generation part.
我不在乎文档生成部分。
PHPLint now runs under Windows. PHPLint现在可以在Windows下运行。 The download page is currently here: http://www.icosaedro.it/phplint/download-windows.html
下载页面当前位于此处: http : //www.icosaedro.it/phplint/download-windows.html
It's a command-line utility, but there's also a little GUI tool which requires a separate download of the Tcl/Tk interpreter from http://www.tcl.tk 这是一个命令行实用程序,但是还有一个小的GUI工具,需要从http://www.tcl.tk单独下载Tcl / Tk解释器。
他们不完全一样工作PHPLint,但在上市一对夫妇的静态分析工具, 这个帖子
OK, since there don't seem to be any good alternatives (those static analysis tools don't check variable types as far as I can tell), I installed a Slackware virtual machine. 好的,因为似乎没有其他好的选择(据我所知,那些静态分析工具不会检查变量类型),所以我安装了Slackware虚拟机。 Clean, and gets things done.
干净,把事情做好。 :)
:)
If though there are some other good alternatives out there, don't hesitate to post them here. 如果还有其他不错的选择,请不要犹豫将其发布在这里。 Even though I've found my solution, others might benefit from it too!
即使我找到了解决方案,其他人也可能会从中受益!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.