PMD 可以定制以完全支持新语言吗?
能否在合理的时间内定制 PMD 以完全支持新语言?我的意思是我知道从技术上讲几乎任何事情都可以完成,但我想知道这是否可以在合理的时间内完成?例如< 2 周
本页提到如何编写 CPD 解析器 http://pmd.sourceforge.net /cpd-parser-howto.html
但这只是为了复制/粘贴检测吗?编写 CPD 解析器是否可以在规则集方面完全支持 PMD?
Can PMD be customized to fully support a new language, in a reasonable amount of time. I mean I know that technically almost anything can be done, but im wondering if this can be done in a reasonable amount of time? E.g. < 2 weeks
This page mentions how to write a CPD parser http://pmd.sourceforge.net/cpd-parser-howto.html
But is this just for copy / paste detection? Does writing a CPD parser give me full support of PMD in terms of rile sets?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我猜不会,但我不是 PMD 专家(我有自己的偏见,请检查我的简历)。
问题是:
我构建了通用的编译器类型的机器(解析器、流分析器、样式/错误检查器),并且在我们的机器上一直被问到与这个问题相当的问题。我们尝试拥有大量可用的机器,尝试让新语言的集成变得容易,15 年来我们一直致力于让这种“方便快捷”。它仍然不方便,并且在几周内用我们的工具无法做到这一点。我怀疑 PMD 更好。
I would guess not, but I'm not a PMD expert (and I have my own bias, check my bio).
The issues are:
I build generic compiler-type machinery (parsers, flow analyzers, style/error checkers) and get asked the equivalent of this question all the time WRT to our machinery. We try to have a lot of machinery available, try to make it easy to integrate new langauges, and we've been working on trying to make this "convenient and fast" for 15+ years. Its still not convenient, and there's no way to do this with our tools in a few weeks. I doubt PMD is better.