简体   繁体   English

eclipse 项目级别的 PMD 错误着色?

[英]PMD error coloring on eclipse project level?

Is there any way to color the errors differently in the eclipse PMD plugin?有没有办法在 eclipse PMD 插件中为错误着色? I know the way via workspace settings, but I need it on project level so I can commit the changes for the full team.我知道通过工作区设置的方式,但我需要在项目级别使用它,以便我可以为整个团队提交更改。

Any hints?有什么提示吗?

You can't set the colour on the project level so you can share it with your team.您无法在项目级别设置颜色,以便与您的团队共享。 I created eclipse-pmd and thought about this when I added the preferences for styling your PMD violations.我创建了 eclipse-pmd 并在添加用于设置 PMD 违规样式的首选项时考虑了这一点。 I came to the conclusion that style is a personal preference as different people can have very different requirements.我得出的结论是,风格是个人喜好,因为不同的人可能有非常不同的要求。 Some people prefer a dark theme over a light theme with respective colours for their annotations.有些人更喜欢深色主题而不是带有各自颜色的浅色主题的注释。 Some people need a high contrast theme or are colour blind and find it difficult to distinguish certain colours.有些人需要高对比度的主题,或者是色盲,很难区分某些颜色。 For all of those reasons I implemented it the way it is now.由于所有这些原因,我以现在的方式实现了它。

But I'm open to different requirements.但我对不同的要求持开放态度。 So if you have a good reason that also takes the issues I mentioned into account, then go ahead and open a new feature request on Github.因此,如果您有充分的理由也考虑到我提到的问题,那么请提前 go 并在 Github 上打开新功能请求 I'd be very interested to hear what kind of problem you want to solve with this feature.我很想知道你想用这个功能解决什么样的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM